Method: Seatsio::ChartObjectInfo#initialize
- Defined in:
- lib/seatsio/domain.rb
#initialize(data) ⇒ ChartObjectInfo
Returns a new instance of ChartObjectInfo.
353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 |
# File 'lib/seatsio/domain.rb', line 353 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'] @zone = data['zone'] @floor = data['floor'] end |