Class: StopwatchTrigger

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

Overview

Category: Date/Time

Instance Attribute Summary

Attributes inherited from Trigger

#constraints

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Trigger

#match?

Methods inherited from MacroObject

#to_h, #to_s

Constructor Details

#initialize(h = {}) ⇒ StopwatchTrigger

Returns a new instance of StopwatchTrigger.



1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
# File 'lib/ruby-macrodroid.rb', line 1784

def initialize(h={})

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

  super(options.merge h)

end