Class: Seatsio::Domain::ChartReport
- Inherits:
-
Object
- Object
- Seatsio::Domain::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.
212 213 214 215 216 217 218 219 220 221 |
# File 'lib/seatsio/domain.rb', line 212 def initialize(data) items = {} data.each do |key, values| items[key] = [] values.each do |value| items[key] << ChartReportItem.new(value) end end @items = items end |
Instance Attribute Details
#items ⇒ Object (readonly)
Returns the value of attribute items.
210 211 212 |
# File 'lib/seatsio/domain.rb', line 210 def items @items end |