Class: AutoRotateConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- AutoRotateConstraint
- Defined in:
- lib/ruby-macrodroid/constraints.rb
Overview
Category: Device State
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ AutoRotateConstraint
constructor
A new instance of AutoRotateConstraint.
- #to_s(colour: false, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ AutoRotateConstraint
Returns a new instance of AutoRotateConstraint.
624 625 626 627 628 629 630 631 632 |
# File 'lib/ruby-macrodroid/constraints.rb', line 624 def initialize(h={}) = { enabled: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
634 635 636 |
# File 'lib/ruby-macrodroid/constraints.rb', line 634 def to_s(colour: false, indent: 0) 'AutoRotateConstraint ' + @h.inspect end |