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.



227
228
229
230
231
232
233
234
235
236
237
238
# File 'lib/seatsio/domain.rb', line 227

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']
  @left_neighbour = data['leftNeighbour']
  @right_neighbour = data['rightNeighbour']
end

Instance Attribute Details

#capacityObject (readonly)

Returns the value of attribute capacity.



224
225
226
# File 'lib/seatsio/domain.rb', line 224

def capacity
  @capacity
end

#category_keyObject (readonly)

Returns the value of attribute category_key.



224
225
226
# File 'lib/seatsio/domain.rb', line 224

def category_key
  @category_key
end

#category_labelObject (readonly)

Returns the value of attribute category_label.



224
225
226
# File 'lib/seatsio/domain.rb', line 224

def category_label
  @category_label
end

#entranceObject (readonly)

Returns the value of attribute entrance.



224
225
226
# File 'lib/seatsio/domain.rb', line 224

def entrance
  @entrance
end

#labelObject (readonly)

Returns the value of attribute label.



224
225
226
# File 'lib/seatsio/domain.rb', line 224

def label
  @label
end

#labelsObject (readonly)

Returns the value of attribute labels.



224
225
226
# File 'lib/seatsio/domain.rb', line 224

def labels
  @labels
end

#left_neighbourObject (readonly)

Returns the value of attribute left_neighbour.



224
225
226
# File 'lib/seatsio/domain.rb', line 224

def left_neighbour
  @left_neighbour
end

#object_typeObject (readonly)

Returns the value of attribute object_type.



224
225
226
# File 'lib/seatsio/domain.rb', line 224

def object_type
  @object_type
end

#right_neighbourObject (readonly)

Returns the value of attribute right_neighbour.



224
225
226
# File 'lib/seatsio/domain.rb', line 224

def right_neighbour
  @right_neighbour
end

#sectionObject (readonly)

Returns the value of attribute section.



224
225
226
# File 'lib/seatsio/domain.rb', line 224

def section
  @section
end