Class: RoamingOnOffConstraint

Inherits:
Constraint show all
Defined in:
lib/ruby-macrodroid/constraints.rb

Overview

Category: Device State

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #siguid, #type

Instance Method Summary collapse

Methods inherited from Constraint

#match?

Methods inherited from MacroObject

#to_h

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={})

  options = {
    roaming_on: true
  }

  super(options.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