Class: CellTowerConstraint

Inherits:
Constraint show all
Defined in:
lib/ruby-macrodroid/constraints.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.



321
322
323
324
325
326
327
328
329
330
331
# File 'lib/ruby-macrodroid/constraints.rb', line 321

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, indent: 0) ⇒ Object Also known as: to_summary



333
334
335
# File 'lib/ruby-macrodroid/constraints.rb', line 333

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