enum

Polar::Models::DiscountDuration

Inherits Enum < Comparable < Value < Object

Constants

Once = 0
Forever = 1
Repeating = 2

Constructors

from_json(parser : JSON::PullParser) : self

Deserialize from JSON

Source

Instance methods

forever?

Returns true if this enum value equals Forever

Source
once?

Returns true if this enum value equals Once

Source
repeating?

Returns true if this enum value equals Repeating

Source
to_json(json : JSON::Builder)

Serialize to JSON using snake_case string values

Source