Class: Seatsio::ChartReport
- Inherits:
-
Object
- Object
- Seatsio::ChartReport
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#items ⇒ Object
readonly
Returns the value of attribute items.
Instance Method Summary collapse
-
#initialize(data) ⇒ ChartReport
constructor
A new instance of ChartReport.
Constructor Details
#initialize(data) ⇒ ChartReport
Returns a new instance of ChartReport.
334 335 336 337 338 339 340 341 342 343 |
# File 'lib/seatsio/domain.rb', line 334 def initialize(data) items = {} data.each do |key, values| items[key] = [] values.each do |value| items[key] << ChartObjectInfo.new(value) end end @items = items end |
Instance Attribute Details
#items ⇒ Object (readonly)
Returns the value of attribute items.
332 333 334 |
# File 'lib/seatsio/domain.rb', line 332 def items @items end |