Class: CarModeAction
- Inherits:
-
DeviceSettingsAction
- Object
- MacroObject
- Action
- DeviceSettingsAction
- CarModeAction
- Defined in:
- lib/ruby-macrodroid/actions.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, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods included from ObjectX
#action_to_object, #object_create, #varify
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ CarModeAction
Returns a new instance of CarModeAction.
1349 1350 1351 1352 1353 1354 1355 1356 1357 |
# File 'lib/ruby-macrodroid/actions.rb', line 1349 def initialize(h={}) = { option: 0 } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
1359 1360 1361 |
# File 'lib/ruby-macrodroid/actions.rb', line 1359 def to_s(colour: false, indent: 0) 'CarModeAction ' + @h.inspect end |