Class: CellTowerConstraint

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

Overview

Category: Connectivity

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

Returns a new instance of CellTowerConstraint.



5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
# File 'lib/ruby-macrodroid.rb', line 5003

def initialize(h={})

  options = {
    cell_group_name: 'test group',
    cell_ids: ["524,14,41070731"],
    in_range: true
  }

  super(options.merge h)

end

Instance Method Details

#to_s(colour: false) ⇒ Object Also known as: to_summary



5015
5016
5017
# File 'lib/ruby-macrodroid.rb', line 5015

def to_s(colour: false)
  'CellTowerConstraint ' + @h.inspect
end