Class: Seatsio::EventReportItem

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ EventReportItem

Returns a new instance of EventReportItem.



332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
# File 'lib/seatsio/domain.rb', line 332

def initialize(data)
  @status = data['status']
  @label = data['label']
  @labels = data['labels']
  @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_selectable = data['isSelectable']
  @is_disabled_by_social_distancing = data['isDisabledBySocialDistancing']
  @channel = data['channel']
end

Instance Attribute Details

#capacityObject (readonly)

Returns the value of attribute capacity.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def capacity
  @capacity
end

#category_keyObject (readonly)

Returns the value of attribute category_key.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def category_key
  @category_key
end

#category_labelObject (readonly)

Returns the value of attribute category_label.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def category_label
  @category_label
end

#channelObject (readonly)

Returns the value of attribute channel.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def channel
  @channel
end

#displayed_object_typeObject (readonly)

Returns the value of attribute displayed_object_type.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def displayed_object_type
  @displayed_object_type
end

#entranceObject (readonly)

Returns the value of attribute entrance.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def entrance
  @entrance
end

#extra_dataObject (readonly)

Returns the value of attribute extra_data.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def extra_data
  @extra_data
end

#for_saleObject (readonly)

Returns the value of attribute for_sale.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def for_sale
  @for_sale
end

#has_restricted_viewObject (readonly)

Returns the value of attribute has_restricted_view.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def has_restricted_view
  @has_restricted_view
end

#hold_tokenObject (readonly)

Returns the value of attribute hold_token.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def hold_token
  @hold_token
end

#is_accessibleObject (readonly)

Returns the value of attribute is_accessible.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def is_accessible
  @is_accessible
end

#is_companion_seatObject (readonly)

Returns the value of attribute is_companion_seat.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def is_companion_seat
  @is_companion_seat
end

#is_disabled_by_social_distancingObject (readonly)

Returns the value of attribute is_disabled_by_social_distancing.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def is_disabled_by_social_distancing
  @is_disabled_by_social_distancing
end

#is_selectableObject (readonly)

Returns the value of attribute is_selectable.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def is_selectable
  @is_selectable
end

#labelObject (readonly)

Returns the value of attribute label.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def label
  @label
end

#labelsObject (readonly)

Returns the value of attribute labels.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def labels
  @labels
end

#left_neighbourObject (readonly)

Returns the value of attribute left_neighbour.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def left_neighbour
  @left_neighbour
end

#num_bookedObject (readonly)

Returns the value of attribute num_booked.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def num_booked
  @num_booked
end

#num_freeObject (readonly)

Returns the value of attribute num_free.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def num_free
  @num_free
end

#num_heldObject (readonly)

Returns the value of attribute num_held.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def num_held
  @num_held
end

#object_typeObject (readonly)

Returns the value of attribute object_type.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def object_type
  @object_type
end

#order_idObject (readonly)

Returns the value of attribute order_id.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def order_id
  @order_id
end

#right_neighbourObject (readonly)

Returns the value of attribute right_neighbour.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def right_neighbour
  @right_neighbour
end

#sectionObject (readonly)

Returns the value of attribute section.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def section
  @section
end

#statusObject (readonly)

Returns the value of attribute status.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def status
  @status
end

#ticket_typeObject (readonly)

Returns the value of attribute ticket_type.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def ticket_type
  @ticket_type
end