struct

PlaceOS::Model::Playlist::Schedule

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(play_cron : String = "0 0 * * *", play_period : Int32 = 1440, play_takeover : Bool = false, play_at : Int64 | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

play_at
Source
play_cron
Source
play_period
Source
play_takeover
Source
valid?
Source
validation_message

nil when the schedule is valid, otherwise a human-readable reason.

Source