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