Class: DayTrigger

Inherits:
Trigger show all
Defined in:
lib/ruby-macrodroid.rb

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ DayTrigger

Returns a new instance of DayTrigger.



865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
# File 'lib/ruby-macrodroid.rb', line 865

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