Class: StopWatchAction
- Inherits:
-
DateTimeAction
- Object
- MacroObject
- Action
- DateTimeAction
- StopWatchAction
- Defined in:
- lib/ruby-macrodroid/actions.rb
Overview
Category: Date/Time
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ StopWatchAction
constructor
A new instance of StopWatchAction.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ StopWatchAction
Returns a new instance of StopWatchAction.
552 553 554 555 556 557 558 559 560 561 |
# File 'lib/ruby-macrodroid/actions.rb', line 552 def initialize(h={}) = { stopwatch_name: 'timer1', option: 0 } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
563 564 565 |
# File 'lib/ruby-macrodroid/actions.rb', line 563 def to_s(colour: false) 'StopWatchAction ' + @h.inspect end |