Class: Seatsio::Domain::ChartReportItem

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ ChartReportItem

Returns a new instance of ChartReportItem.



210
211
212
213
214
215
216
217
218
219
# File 'lib/seatsio/domain.rb', line 210

def initialize(data)
  @label = data['label']
  @labels = data['labels']
  @category_label = data['categoryLabel']
  @category_key = data['categoryKey']
  @section = data['section']
  @entrance = data['entrance']
  @capacity = data['capacity']
  @object_type = data['objectType']
end

Instance Attribute Details

#capacityObject (readonly)

Returns the value of attribute capacity.



208
209
210
# File 'lib/seatsio/domain.rb', line 208

def capacity
  @capacity
end

#category_keyObject (readonly)

Returns the value of attribute category_key.



208
209
210
# File 'lib/seatsio/domain.rb', line 208

def category_key
  @category_key
end

#category_labelObject (readonly)

Returns the value of attribute category_label.



208
209
210
# File 'lib/seatsio/domain.rb', line 208

def category_label
  @category_label
end

#entranceObject (readonly)

Returns the value of attribute entrance.



208
209
210
# File 'lib/seatsio/domain.rb', line 208

def entrance
  @entrance
end

#labelObject (readonly)

Returns the value of attribute label.



208
209
210
# File 'lib/seatsio/domain.rb', line 208

def label
  @label
end

#labelsObject (readonly)

Returns the value of attribute labels.



208
209
210
# File 'lib/seatsio/domain.rb', line 208

def labels
  @labels
end

#object_typeObject (readonly)

Returns the value of attribute object_type.



208
209
210
# File 'lib/seatsio/domain.rb', line 208

def object_type
  @object_type
end

#sectionObject (readonly)

Returns the value of attribute section.



208
209
210
# File 'lib/seatsio/domain.rb', line 208

def section
  @section
end