Class: AutoSyncConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- AutoSyncConstraint
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Device State
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ AutoSyncConstraint
constructor
A new instance of AutoSyncConstraint.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ AutoSyncConstraint
Returns a new instance of AutoSyncConstraint.
5355 5356 5357 5358 5359 5360 5361 5362 5363 |
# File 'lib/ruby-macrodroid.rb', line 5355 def initialize(h={}) = { enabled: false } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
5365 5366 5367 |
# File 'lib/ruby-macrodroid.rb', line 5365 def to_s(colour: false) 'AutoSyncConstraint ' + @h.inspect end |