Class: RoamingOnOffConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- RoamingOnOffConstraint
- Defined in:
- lib/ruby-macrodroid/constraints.rb
Overview
Category: Device State
Instance Attribute Summary
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ RoamingOnOffConstraint
constructor
A new instance of RoamingOnOffConstraint.
- #to_s(colour: false, indent: 0) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ RoamingOnOffConstraint
Returns a new instance of RoamingOnOffConstraint.
667 668 669 670 671 672 673 674 675 |
# File 'lib/ruby-macrodroid/constraints.rb', line 667 def initialize(h={}) = { roaming_on: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false, indent: 0) ⇒ Object Also known as: to_summary
677 678 679 |
# File 'lib/ruby-macrodroid/constraints.rb', line 677 def to_s(colour: false, indent: 0) 'RoamingOnOffConstraint ' + @h.inspect end |