class DayTrigger
Category: Date/Time
Also known as Day of Week/Month
month_of_year equal to 0 means it occurs every month day_of_week starts with a Monday (value is 0)
Public Class Methods
new(h={})
click to toggle source
Calls superclass method
Trigger::new
# File lib/ruby-macrodroid/triggers.rb, line 811 def initialize(h={}) options = { alarm_id: uuid(), hour: 9, minute: 0, month_of_year: 0, option: 0, day_of_week: 2, day_of_month: 0, use_alarm: false } super(options.merge h) end
Public Instance Methods
to_s(colour: false)
click to toggle source
# File lib/ruby-macrodroid/triggers.rb, line 828 def to_s(colour: false) 'DayTrigger ' + @h.inspect end
Also aliased as: to_summary