Class: Seatsio::Domain::UsageByChart

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ UsageByChart

Returns a new instance of UsageByChart.



335
336
337
338
# File 'lib/seatsio/domain.rb', line 335

def initialize(data)
  @chart = data['chart'] ? UsageChart.new(data['chart']) : nil
  @usage_by_event = data['usageByEvent'].map { |usage| UsageByEvent.new(usage) }
end

Instance Attribute Details

#chartObject (readonly)

Returns the value of attribute chart.



333
334
335
# File 'lib/seatsio/domain.rb', line 333

def chart
  @chart
end

#usage_by_eventObject (readonly)

Returns the value of attribute usage_by_event.



333
334
335
# File 'lib/seatsio/domain.rb', line 333

def usage_by_event
  @usage_by_event
end