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.
3649 3650 3651 3652 3653 3654 3655 3656 3657 |
# File 'lib/ruby-macrodroid.rb', line 3649 def initialize(h={}) = { option: 0 } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
3659 3660 3661 |
# File 'lib/ruby-macrodroid.rb', line 3659 def to_s(colour: false) 'CarModeAction ' + @h.inspect end |