Class: Seatsio::EventObjectInfo
- Inherits:
-
Object
- Object
- Seatsio::EventObjectInfo
- Defined in:
- lib/seatsio/domain.rb
Constant Summary collapse
- FREE =
'free'- BOOKED =
'booked'- HELD =
'reservedByToken'
Instance Attribute Summary collapse
-
#book_as_a_whole ⇒ Object
readonly
Returns the value of attribute book_as_a_whole.
-
#capacity ⇒ Object
readonly
Returns the value of attribute capacity.
-
#category_key ⇒ Object
readonly
Returns the value of attribute category_key.
-
#category_label ⇒ Object
readonly
Returns the value of attribute category_label.
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#displayed_object_type ⇒ Object
readonly
Returns the value of attribute displayed_object_type.
-
#distance_to_focal_point ⇒ Object
readonly
Returns the value of attribute distance_to_focal_point.
-
#entrance ⇒ Object
readonly
Returns the value of attribute entrance.
-
#extra_data ⇒ Object
readonly
Returns the value of attribute extra_data.
-
#for_sale ⇒ Object
readonly
Returns the value of attribute for_sale.
-
#has_restricted_view ⇒ Object
readonly
Returns the value of attribute has_restricted_view.
-
#hold_token ⇒ Object
readonly
Returns the value of attribute hold_token.
-
#holds ⇒ Object
readonly
Returns the value of attribute holds.
-
#ids ⇒ Object
readonly
Returns the value of attribute ids.
-
#is_accessible ⇒ Object
readonly
Returns the value of attribute is_accessible.
-
#is_available ⇒ Object
readonly
Returns the value of attribute is_available.
-
#is_companion_seat ⇒ Object
readonly
Returns the value of attribute is_companion_seat.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#labels ⇒ Object
readonly
Returns the value of attribute labels.
-
#left_neighbour ⇒ Object
readonly
Returns the value of attribute left_neighbour.
-
#max_occupancy ⇒ Object
readonly
Returns the value of attribute max_occupancy.
-
#min_occupancy ⇒ Object
readonly
Returns the value of attribute min_occupancy.
-
#num_booked ⇒ Object
readonly
Returns the value of attribute num_booked.
-
#num_free ⇒ Object
readonly
Returns the value of attribute num_free.
-
#num_held ⇒ Object
readonly
Returns the value of attribute num_held.
-
#num_seats ⇒ Object
readonly
Returns the value of attribute num_seats.
-
#object_type ⇒ Object
readonly
Returns the value of attribute object_type.
-
#order_id ⇒ Object
readonly
Returns the value of attribute order_id.
-
#right_neighbour ⇒ Object
readonly
Returns the value of attribute right_neighbour.
-
#section ⇒ Object
readonly
Returns the value of attribute section.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#ticket_type ⇒ Object
readonly
Returns the value of attribute ticket_type.
-
#variable_occupancy ⇒ Object
readonly
Returns the value of attribute variable_occupancy.
Instance Method Summary collapse
-
#initialize(data) ⇒ EventObjectInfo
constructor
A new instance of EventObjectInfo.
Constructor Details
#initialize(data) ⇒ EventObjectInfo
Returns a new instance of EventObjectInfo.
372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 |
# File 'lib/seatsio/domain.rb', line 372 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'] @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'] end |
Instance Attribute Details
#book_as_a_whole ⇒ Object (readonly)
Returns the value of attribute book_as_a_whole.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def book_as_a_whole @book_as_a_whole end |
#capacity ⇒ Object (readonly)
Returns the value of attribute capacity.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def capacity @capacity end |
#category_key ⇒ Object (readonly)
Returns the value of attribute category_key.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def category_key @category_key end |
#category_label ⇒ Object (readonly)
Returns the value of attribute category_label.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def category_label @category_label end |
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def channel @channel end |
#displayed_object_type ⇒ Object (readonly)
Returns the value of attribute displayed_object_type.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def displayed_object_type @displayed_object_type end |
#distance_to_focal_point ⇒ Object (readonly)
Returns the value of attribute distance_to_focal_point.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def distance_to_focal_point @distance_to_focal_point end |
#entrance ⇒ Object (readonly)
Returns the value of attribute entrance.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def entrance @entrance end |
#extra_data ⇒ Object (readonly)
Returns the value of attribute extra_data.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def extra_data @extra_data end |
#for_sale ⇒ Object (readonly)
Returns the value of attribute for_sale.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def for_sale @for_sale end |
#has_restricted_view ⇒ Object (readonly)
Returns the value of attribute has_restricted_view.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def has_restricted_view @has_restricted_view end |
#hold_token ⇒ Object (readonly)
Returns the value of attribute hold_token.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def hold_token @hold_token end |
#holds ⇒ Object (readonly)
Returns the value of attribute holds.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def holds @holds end |
#ids ⇒ Object (readonly)
Returns the value of attribute ids.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def ids @ids end |
#is_accessible ⇒ Object (readonly)
Returns the value of attribute is_accessible.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def is_accessible @is_accessible end |
#is_available ⇒ Object (readonly)
Returns the value of attribute is_available.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def is_available @is_available end |
#is_companion_seat ⇒ Object (readonly)
Returns the value of attribute is_companion_seat.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def is_companion_seat @is_companion_seat end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def label @label end |
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def labels @labels end |
#left_neighbour ⇒ Object (readonly)
Returns the value of attribute left_neighbour.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def left_neighbour @left_neighbour end |
#max_occupancy ⇒ Object (readonly)
Returns the value of attribute max_occupancy.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def max_occupancy @max_occupancy end |
#min_occupancy ⇒ Object (readonly)
Returns the value of attribute min_occupancy.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def min_occupancy @min_occupancy end |
#num_booked ⇒ Object (readonly)
Returns the value of attribute num_booked.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def num_booked @num_booked end |
#num_free ⇒ Object (readonly)
Returns the value of attribute num_free.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def num_free @num_free end |
#num_held ⇒ Object (readonly)
Returns the value of attribute num_held.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def num_held @num_held end |
#num_seats ⇒ Object (readonly)
Returns the value of attribute num_seats.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def num_seats @num_seats end |
#object_type ⇒ Object (readonly)
Returns the value of attribute object_type.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def object_type @object_type end |
#order_id ⇒ Object (readonly)
Returns the value of attribute order_id.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def order_id @order_id end |
#right_neighbour ⇒ Object (readonly)
Returns the value of attribute right_neighbour.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def right_neighbour @right_neighbour end |
#section ⇒ Object (readonly)
Returns the value of attribute section.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def section @section end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def status @status end |
#ticket_type ⇒ Object (readonly)
Returns the value of attribute ticket_type.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def ticket_type @ticket_type end |
#variable_occupancy ⇒ Object (readonly)
Returns the value of attribute variable_occupancy.
364 365 366 |
# File 'lib/seatsio/domain.rb', line 364 def variable_occupancy @variable_occupancy end |