Class: TimerTrigger

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

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ TimerTrigger

Returns a new instance of TimerTrigger.



649
650
651
652
653
654
655
656
657
658
659
660
661
# File 'lib/ruby-macrodroid.rb', line 649

def initialize(h={})

  options = {
    alarm_id: uuid(),
    days_of_week: [false, true, false, false, false, false, false],
    minute: 10,
    hour: 7,
    use_alarm: false
  }

  super(options.merge h)

end