enum

Polar::Models::TrialInterval

Inherits Enum < Comparable < Value < Object

Constants

Day = 0
Week = 1
Month = 2
Year = 3

Constructors

from_json(parser : JSON::PullParser) : self

Deserialize from JSON

Source

Instance methods

day?

Returns true if this enum value equals Day

Source
month?

Returns true if this enum value equals Month

Source
to_json(json : JSON::Builder)

Serialize to JSON using snake_case string values

Source
week?

Returns true if this enum value equals Week

Source
year?

Returns true if this enum value equals Year

Source