Class: SetAutoRotateAction
- Inherits:
-
DeviceSettingsAction
- Object
- MacroObject
- Action
- DeviceSettingsAction
- SetAutoRotateAction
- 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 = {}) ⇒ SetAutoRotateAction
constructor
A new instance of SetAutoRotateAction.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ SetAutoRotateAction
Returns a new instance of SetAutoRotateAction.
3560 3561 3562 3563 3564 3565 3566 3567 3568 |
# File 'lib/ruby-macrodroid.rb', line 3560 def initialize(h={}) = { state: 0 } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
3570 3571 3572 |
# File 'lib/ruby-macrodroid.rb', line 3570 def to_s(colour: false) 'SetAutoRotateAction ' + @h.inspect end |