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.
| 1499 1500 1501 1502 1503 1504 1505 1506 1507 | # File 'lib/ruby-macrodroid/actions.rb', line 1499 def initialize(h={}) = { option: 0 } super(.merge h) end | 
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
| 1509 1510 1511 | # File 'lib/ruby-macrodroid/actions.rb', line 1509 def to_s(colour: false, indent: 0) 'CarModeAction ' + @h.inspect end |