Class: StopWatchAction
- Inherits:
-
DateTimeAction
- Object
- MacroObject
- Action
- DateTimeAction
- StopWatchAction
- Defined in:
- lib/ruby-macrodroid.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.
3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 |
# File 'lib/ruby-macrodroid.rb', line 3264 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
3275 3276 3277 |
# File 'lib/ruby-macrodroid.rb', line 3275 def to_s(colour: false) 'StopWatchAction ' + @h.inspect end |