Method: Seatsio::ChartObjectInfo#initialize

Defined in:
lib/seatsio/domain.rb

#initialize(data) ⇒ ChartObjectInfo

Returns a new instance of ChartObjectInfo.



321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
# File 'lib/seatsio/domain.rb', line 321

def initialize(data)
  @label = data['label']
  @labels = data['labels']
  @ids = data['ids']
  @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']
  @book_as_a_whole = data['bookAsAWhole']
  @distance_to_focal_point = data['distanceToFocalPoint']
  @num_seats = data['numSeats']
end