Class: ModeConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- ModeConstraint
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: MacroDroid Specific
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ ModeConstraint
constructor
A new instance of ModeConstraint.
- #to_s(colour: false) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ ModeConstraint
Returns a new instance of ModeConstraint.
5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 |
# File 'lib/ruby-macrodroid.rb', line 5462 def initialize(h={}) = { mode: 'Away', mode_selected: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
5473 5474 5475 |
# File 'lib/ruby-macrodroid.rb', line 5473 def to_s(colour: false) 'ModeConstraint ' + @h.inspect end |