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.
5312 5313 5314 5315 5316 5317 5318 5319 5320 |
# File 'lib/ruby-macrodroid.rb', line 5312 def initialize(h={}) = { roaming_on: true } super(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object Also known as: to_summary
5322 5323 5324 |
# File 'lib/ruby-macrodroid.rb', line 5322 def to_s(colour: false) 'RoamingOnOffConstraint ' + @h.inspect end |