enum

Polar::Models::WebhookFormat

Inherits Enum < Comparable < Value < Object

Constants

Raw = 0
Discord = 1
Slack = 2

Constructors

from_json(parser : JSON::PullParser) : self

Deserialize from JSON

Source

Instance methods

discord?

Returns true if this enum value equals Discord

Source
raw?

Returns true if this enum value equals Raw

Source
slack?

Returns true if this enum value equals Slack

Source
to_json(json : JSON::Builder)

Serialize to JSON using snake_case string values

Source