Class: RoamingOnOffConstraint
- Inherits:
-
Constraint
- Object
- MacroObject
- Constraint
- RoamingOnOffConstraint
- Defined in:
- lib/ruby-macrodroid.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) ⇒ Object (also: #to_summary)
Methods inherited from Constraint
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ RoamingOnOffConstraint
Returns a new instance of RoamingOnOffConstraint.
5326 5327 5328 5329 5330 5331 5332 5333 5334 |
# File 'lib/ruby-macrodroid.rb', line 5326 def initialize(h={}) = { roaming_on: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
5336 5337 5338 |
# File 'lib/ruby-macrodroid.rb', line 5336 def to_s(colour: false) 'RoamingOnOffConstraint ' + @h.inspect end |