Class: Seatsio::ChartObjectInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ ChartObjectInfo

Returns a new instance of ChartObjectInfo.



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

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']
  @is_accessible = data['isAccessible']
  @is_companion_seat = data['isCompanionSeat']
  @has_restricted_view = data['hasRestrictedView']
end

Instance Attribute Details

#book_as_a_wholeObject (readonly)

Returns the value of attribute book_as_a_whole.



316
317
318
# File 'lib/seatsio/domain.rb', line 316

def book_as_a_whole
  @book_as_a_whole
end

#capacityObject (readonly)

Returns the value of attribute capacity.



316
317
318
# File 'lib/seatsio/domain.rb', line 316

def capacity
  @capacity
end

#category_keyObject (readonly)

Returns the value of attribute category_key.



316
317
318
# File 'lib/seatsio/domain.rb', line 316

def category_key
  @category_key
end

#category_labelObject (readonly)

Returns the value of attribute category_label.



316
317
318
# File 'lib/seatsio/domain.rb', line 316

def category_label
  @category_label
end

#distance_to_focal_pointObject (readonly)

Returns the value of attribute distance_to_focal_point.



316
317
318
# File 'lib/seatsio/domain.rb', line 316

def distance_to_focal_point
  @distance_to_focal_point
end

#entranceObject (readonly)

Returns the value of attribute entrance.



316
317
318
# File 'lib/seatsio/domain.rb', line 316

def entrance
  @entrance
end

#has_restricted_viewObject (readonly)

Returns the value of attribute has_restricted_view.



316
317
318
# File 'lib/seatsio/domain.rb', line 316

def has_restricted_view
  @has_restricted_view
end

#idsObject (readonly)

Returns the value of attribute ids.



316
317
318
# File 'lib/seatsio/domain.rb', line 316

def ids
  @ids
end

#is_accessibleObject (readonly)

Returns the value of attribute is_accessible.



316
317
318
# File 'lib/seatsio/domain.rb', line 316

def is_accessible
  @is_accessible
end

#is_companion_seatObject (readonly)

Returns the value of attribute is_companion_seat.



316
317
318
# File 'lib/seatsio/domain.rb', line 316

def is_companion_seat
  @is_companion_seat
end

#labelObject (readonly)

Returns the value of attribute label.



316
317
318
# File 'lib/seatsio/domain.rb', line 316

def label
  @label
end

#labelsObject (readonly)

Returns the value of attribute labels.



316
317
318
# File 'lib/seatsio/domain.rb', line 316

def labels
  @labels
end

#left_neighbourObject (readonly)

Returns the value of attribute left_neighbour.



316
317
318
# File 'lib/seatsio/domain.rb', line 316

def left_neighbour
  @left_neighbour
end

#num_seatsObject (readonly)

Returns the value of attribute num_seats.



316
317
318
# File 'lib/seatsio/domain.rb', line 316

def num_seats
  @num_seats
end

#object_typeObject (readonly)

Returns the value of attribute object_type.



316
317
318
# File 'lib/seatsio/domain.rb', line 316

def object_type
  @object_type
end

#right_neighbourObject (readonly)

Returns the value of attribute right_neighbour.



316
317
318
# File 'lib/seatsio/domain.rb', line 316

def right_neighbour
  @right_neighbour
end

#sectionObject (readonly)

Returns the value of attribute section.



316
317
318
# File 'lib/seatsio/domain.rb', line 316

def section
  @section
end