Class: RegularIntervalTrigger

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

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ RegularIntervalTrigger

Returns a new instance of RegularIntervalTrigger.



886
887
888
889
890
891
892
893
894
895
896
897
898
899
# File 'lib/ruby-macrodroid.rb', line 886

def initialize(h={})

  options = {
    ignore_reference_start_time: false,
    minutes: 0,
    seconds: 7200,
    start_hour: 9,
    start_minute: 10,
    use_alarm: false
  }

  super(options.merge h)

end