Class: Seatsio::ChartReport

Inherits:
Object
  • Object
show all
Defined in:
lib/seatsio/domain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ ChartReport

Returns a new instance of ChartReport.



380
381
382
383
384
385
386
387
388
389
# File 'lib/seatsio/domain.rb', line 380

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

#itemsObject (readonly)

Returns the value of attribute items.



378
379
380
# File 'lib/seatsio/domain.rb', line 378

def items
  @items
end