enum

Polar::Models::LicenseKeyStatus

Inherits Enum < Comparable < Value < Object

Constants

Granted = 0
Revoked = 1
Disabled = 2

Constructors

from_json(parser : JSON::PullParser) : self

Deserialize from JSON

Source

Instance methods

disabled?

Returns true if this enum value equals Disabled

Source
granted?

Returns true if this enum value equals Granted

Source
revoked?

Returns true if this enum value equals Revoked

Source
to_json(json : JSON::Builder)

Serialize to JSON using snake_case string values

Source