struct
PlaceOS::Model::Playlist::Schedule
- PlaceOS::Model::Playlist::Schedule
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
placeos-models/playlist/schedule.crConstructors
- .new(pull : JSON::PullParser)
- .new(play_cron : String = "0 0 * * *", play_period : Int32 = 1440, play_takeover : Bool = false, play_at : Int64 | Nil = nil)
Instance Method Summary
- #play_at : Int64 | Nil
- #play_cron : String
- #play_period : Int32
- #play_takeover : Bool
- #valid? : Bool
-
#validation_message : String | Nil
nilwhen the schedule is valid, otherwise a human-readable reason.
Constructor Detail
def self.new(play_cron : String = "0 0 * * *", play_period : Int32 = 1440, play_takeover : Bool = false, play_at : Int64 | Nil = nil)
#
Instance Method Detail
def validation_message : String | Nil
#
nil when the schedule is valid, otherwise a human-readable reason.