Class: CarModeAction
- Inherits:
-
DeviceSettingsAction
- Object
- MacroObject
- Action
- DeviceSettingsAction
- CarModeAction
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Device Settings
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ CarModeAction
constructor
A new instance of CarModeAction.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ CarModeAction
Returns a new instance of CarModeAction.
3642 3643 3644 3645 3646 3647 3648 3649 3650 |
# File 'lib/ruby-macrodroid.rb', line 3642 def initialize(h={}) = { option: 0 } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
3652 3653 3654 |
# File 'lib/ruby-macrodroid.rb', line 3652 def to_s(colour: false) 'CarModeAction ' + @h.inspect end |