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.



4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
# File 'lib/ruby-macrodroid.rb', line 4989

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



5001
5002
5003
# File 'lib/ruby-macrodroid.rb', line 5001

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