Class: StopwatchTrigger

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

Overview

Category: Date/Time

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ StopwatchTrigger

Returns a new instance of StopwatchTrigger.



1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
# File 'lib/ruby-macrodroid.rb', line 1253

def initialize(h={})

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

  super(options.merge h)

end