Class: StopwatchTrigger

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

Instance Method Summary collapse

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ StopwatchTrigger

Returns a new instance of StopwatchTrigger.



850
851
852
853
854
855
856
857
858
859
# File 'lib/ruby-macrodroid.rb', line 850

def initialize(h={})

  options = {
    stopwatch_name: 'timer1',
    seconds: 240
  }

  super(options.merge h)

end