Class: SensorList
Instance Attribute Summary
Attributes inherited from List
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ SensorList
constructor
A new instance of SensorList.
Methods inherited from List
Methods inherited from HObject
Constructor Details
#initialize(data = {}) ⇒ SensorList
Returns a new instance of SensorList.
5 6 7 8 |
# File 'lib/lights/sensorlist.rb', line 5 def initialize(data = {}) super data.each{|id,value| @list << Sensor.new(id,value)} if data end |