Class: Seatsio::EventObjectInfo

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

Constant Summary collapse

FREE =
'free'
BOOKED =
'booked'
HELD =
'reservedByToken'
RESALE =
'resale'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ EventObjectInfo

Returns a new instance of EventObjectInfo.



467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
# File 'lib/seatsio/domain.rb', line 467

def initialize(data)
  @status = data['status']
  @label = data['label']
  @labels = data['labels']
  @ids = data['ids']
  @category_label = data['categoryLabel']
  @category_key = data['categoryKey']
  @ticket_type = data['ticketType']
  @order_id = data['orderId']
  @for_sale = data['forSale']
  @hold_token = data['holdToken']
  @section = data['section']
  @entrance = data['entrance']
  @num_booked = data['numBooked']
  @num_free = data['numFree']
  @num_held = data['numHeld']
  @capacity = data['capacity']
  @object_type = data['objectType']
  @extra_data = data['extraData']
  @is_accessible = data['isAccessible']
  @is_companion_seat = data['isCompanionSeat']
  @has_restricted_view = data['hasRestrictedView']
  @displayed_object_type = data['displayedObjectType']
  @parent_displayed_object_type = data['parentDisplayedObjectType']
  @left_neighbour = data['leftNeighbour']
  @right_neighbour = data['rightNeighbour']
  @is_available = data['isAvailable']
  @channel = data['channel']
  @book_as_a_whole = data['bookAsAWhole']
  @distance_to_focal_point = data['distanceToFocalPoint']
  @holds = data['holds']
  @num_seats = data['numSeats']
  @variable_occupancy = data['variableOccupancy']
  @min_occupancy = data['minOccupancy']
  @max_occupancy = data['maxOccupancy']
  @season_status_overridden_quantity = data['seasonStatusOverriddenQuantity']
  @num_not_for_sale = data['numNotForSale']
  @zone = data['zone']
  @floor = data['floor']
  @resale_listing_id = data['resaleListingId']
end

Instance Attribute Details

#book_as_a_wholeObject (readonly)

Returns the value of attribute book_as_a_whole.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def book_as_a_whole
  @book_as_a_whole
end

#capacityObject (readonly)

Returns the value of attribute capacity.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def capacity
  @capacity
end

#category_keyObject (readonly)

Returns the value of attribute category_key.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def category_key
  @category_key
end

#category_labelObject (readonly)

Returns the value of attribute category_label.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def category_label
  @category_label
end

#channelObject (readonly)

Returns the value of attribute channel.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def channel
  @channel
end

#displayed_object_typeObject (readonly)

Returns the value of attribute displayed_object_type.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def displayed_object_type
  @displayed_object_type
end

#distance_to_focal_pointObject (readonly)

Returns the value of attribute distance_to_focal_point.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def distance_to_focal_point
  @distance_to_focal_point
end

#entranceObject (readonly)

Returns the value of attribute entrance.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def entrance
  @entrance
end

#extra_dataObject (readonly)

Returns the value of attribute extra_data.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def extra_data
  @extra_data
end

#floorObject (readonly)

Returns the value of attribute floor.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def floor
  @floor
end

#for_saleObject (readonly)

Returns the value of attribute for_sale.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def for_sale
  @for_sale
end

#has_restricted_viewObject (readonly)

Returns the value of attribute has_restricted_view.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def has_restricted_view
  @has_restricted_view
end

#hold_tokenObject (readonly)

Returns the value of attribute hold_token.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def hold_token
  @hold_token
end

#holdsObject (readonly)

Returns the value of attribute holds.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def holds
  @holds
end

#idsObject (readonly)

Returns the value of attribute ids.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def ids
  @ids
end

#is_accessibleObject (readonly)

Returns the value of attribute is_accessible.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def is_accessible
  @is_accessible
end

#is_availableObject (readonly)

Returns the value of attribute is_available.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def is_available
  @is_available
end

#is_companion_seatObject (readonly)

Returns the value of attribute is_companion_seat.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def is_companion_seat
  @is_companion_seat
end

#labelObject (readonly)

Returns the value of attribute label.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def label
  @label
end

#labelsObject (readonly)

Returns the value of attribute labels.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def labels
  @labels
end

#left_neighbourObject (readonly)

Returns the value of attribute left_neighbour.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def left_neighbour
  @left_neighbour
end

#max_occupancyObject (readonly)

Returns the value of attribute max_occupancy.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def max_occupancy
  @max_occupancy
end

#min_occupancyObject (readonly)

Returns the value of attribute min_occupancy.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def min_occupancy
  @min_occupancy
end

#num_bookedObject (readonly)

Returns the value of attribute num_booked.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def num_booked
  @num_booked
end

#num_freeObject (readonly)

Returns the value of attribute num_free.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def num_free
  @num_free
end

#num_heldObject (readonly)

Returns the value of attribute num_held.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def num_held
  @num_held
end

#num_not_for_saleObject (readonly)

Returns the value of attribute num_not_for_sale.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def num_not_for_sale
  @num_not_for_sale
end

#num_seatsObject (readonly)

Returns the value of attribute num_seats.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def num_seats
  @num_seats
end

#object_typeObject (readonly)

Returns the value of attribute object_type.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def object_type
  @object_type
end

#order_idObject (readonly)

Returns the value of attribute order_id.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def order_id
  @order_id
end

#parent_displayed_object_typeObject (readonly)

Returns the value of attribute parent_displayed_object_type.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def parent_displayed_object_type
  @parent_displayed_object_type
end

#resale_listing_idObject (readonly)

Returns the value of attribute resale_listing_id.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def resale_listing_id
  @resale_listing_id
end

#right_neighbourObject (readonly)

Returns the value of attribute right_neighbour.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def right_neighbour
  @right_neighbour
end

#season_status_overridden_quantityObject (readonly)

Returns the value of attribute season_status_overridden_quantity.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def season_status_overridden_quantity
  @season_status_overridden_quantity
end

#sectionObject (readonly)

Returns the value of attribute section.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def section
  @section
end

#statusObject (readonly)

Returns the value of attribute status.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def status
  @status
end

#ticket_typeObject (readonly)

Returns the value of attribute ticket_type.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def ticket_type
  @ticket_type
end

#variable_occupancyObject (readonly)

Returns the value of attribute variable_occupancy.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def variable_occupancy
  @variable_occupancy
end

#zoneObject (readonly)

Returns the value of attribute zone.



458
459
460
# File 'lib/seatsio/domain.rb', line 458

def zone
  @zone
end