Class: Seatsio::Domain::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.



269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
# File 'lib/seatsio/domain.rb', line 269

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']
end

Instance Attribute Details

#capacityObject (readonly)

Returns the value of attribute capacity.



265
266
267
# File 'lib/seatsio/domain.rb', line 265

def capacity
  @capacity
end

#category_keyObject (readonly)

Returns the value of attribute category_key.



265
266
267
# File 'lib/seatsio/domain.rb', line 265

def category_key
  @category_key
end

#category_labelObject (readonly)

Returns the value of attribute category_label.



265
266
267
# File 'lib/seatsio/domain.rb', line 265

def category_label
  @category_label
end

#entranceObject (readonly)

Returns the value of attribute entrance.



265
266
267
# File 'lib/seatsio/domain.rb', line 265

def entrance
  @entrance
end

#extra_dataObject (readonly)

Returns the value of attribute extra_data.



265
266
267
# File 'lib/seatsio/domain.rb', line 265

def extra_data
  @extra_data
end

#for_saleObject (readonly)

Returns the value of attribute for_sale.



265
266
267
# File 'lib/seatsio/domain.rb', line 265

def for_sale
  @for_sale
end

#hold_tokenObject (readonly)

Returns the value of attribute hold_token.



265
266
267
# File 'lib/seatsio/domain.rb', line 265

def hold_token
  @hold_token
end

#labelObject (readonly)

Returns the value of attribute label.



265
266
267
# File 'lib/seatsio/domain.rb', line 265

def label
  @label
end

#labelsObject (readonly)

Returns the value of attribute labels.



265
266
267
# File 'lib/seatsio/domain.rb', line 265

def labels
  @labels
end

#num_bookedObject (readonly)

Returns the value of attribute num_booked.



265
266
267
# File 'lib/seatsio/domain.rb', line 265

def num_booked
  @num_booked
end

#num_freeObject (readonly)

Returns the value of attribute num_free.



265
266
267
# File 'lib/seatsio/domain.rb', line 265

def num_free
  @num_free
end

#num_heldObject (readonly)

Returns the value of attribute num_held.



265
266
267
# File 'lib/seatsio/domain.rb', line 265

def num_held
  @num_held
end

#object_typeObject (readonly)

Returns the value of attribute object_type.



265
266
267
# File 'lib/seatsio/domain.rb', line 265

def object_type
  @object_type
end

#order_idObject (readonly)

Returns the value of attribute order_id.



265
266
267
# File 'lib/seatsio/domain.rb', line 265

def order_id
  @order_id
end

#sectionObject (readonly)

Returns the value of attribute section.



265
266
267
# File 'lib/seatsio/domain.rb', line 265

def section
  @section
end

#statusObject (readonly)

Returns the value of attribute status.



265
266
267
# File 'lib/seatsio/domain.rb', line 265

def status
  @status
end

#ticket_typeObject (readonly)

Returns the value of attribute ticket_type.



265
266
267
# File 'lib/seatsio/domain.rb', line 265

def ticket_type
  @ticket_type
end