struct PlaceOS::Model::Playlist::Schedule

Included Modules

Defined in:

placeos-models/playlist/schedule.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(play_cron : String = "0 0 * * *", play_period : Int32 = 1440, play_takeover : Bool = false, play_at : Int64 | Nil = nil) #

[View source]

Instance Method Detail

def play_at : Int64 | Nil #

[View source]
def play_cron : String #

[View source]
def play_period : Int32 #

[View source]
def play_takeover : Bool #

[View source]
def valid? : Bool #

[View source]
def validation_message : String | Nil #

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


[View source]