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.
5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 |
# File 'lib/ruby-macrodroid.rb', line 5476 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
5487 5488 5489 |
# File 'lib/ruby-macrodroid.rb', line 5487 def to_s(colour: false) 'ModeConstraint ' + @h.inspect end |