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.



265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
# File 'lib/seatsio/domain.rb', line 265

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']
  @capacity = data['capacity']
  @object_type = data['objectType']
  @extra_data = data['extraData']
end

Instance Attribute Details

#capacityObject (readonly)

Returns the value of attribute capacity.



261
262
263
# File 'lib/seatsio/domain.rb', line 261

def capacity
  @capacity
end

#category_keyObject (readonly)

Returns the value of attribute category_key.



261
262
263
# File 'lib/seatsio/domain.rb', line 261

def category_key
  @category_key
end

#category_labelObject (readonly)

Returns the value of attribute category_label.



261
262
263
# File 'lib/seatsio/domain.rb', line 261

def category_label
  @category_label
end

#entranceObject (readonly)

Returns the value of attribute entrance.



261
262
263
# File 'lib/seatsio/domain.rb', line 261

def entrance
  @entrance
end

#extra_dataObject (readonly)

Returns the value of attribute extra_data.



261
262
263
# File 'lib/seatsio/domain.rb', line 261

def extra_data
  @extra_data
end

#for_saleObject (readonly)

Returns the value of attribute for_sale.



261
262
263
# File 'lib/seatsio/domain.rb', line 261

def for_sale
  @for_sale
end

#hold_tokenObject (readonly)

Returns the value of attribute hold_token.



261
262
263
# File 'lib/seatsio/domain.rb', line 261

def hold_token
  @hold_token
end

#labelObject (readonly)

Returns the value of attribute label.



261
262
263
# File 'lib/seatsio/domain.rb', line 261

def label
  @label
end

#labelsObject (readonly)

Returns the value of attribute labels.



261
262
263
# File 'lib/seatsio/domain.rb', line 261

def labels
  @labels
end

#num_bookedObject (readonly)

Returns the value of attribute num_booked.



261
262
263
# File 'lib/seatsio/domain.rb', line 261

def num_booked
  @num_booked
end

#object_typeObject (readonly)

Returns the value of attribute object_type.



261
262
263
# File 'lib/seatsio/domain.rb', line 261

def object_type
  @object_type
end

#order_idObject (readonly)

Returns the value of attribute order_id.



261
262
263
# File 'lib/seatsio/domain.rb', line 261

def order_id
  @order_id
end

#sectionObject (readonly)

Returns the value of attribute section.



261
262
263
# File 'lib/seatsio/domain.rb', line 261

def section
  @section
end

#statusObject (readonly)

Returns the value of attribute status.



261
262
263
# File 'lib/seatsio/domain.rb', line 261

def status
  @status
end

#ticket_typeObject (readonly)

Returns the value of attribute ticket_type.



261
262
263
# File 'lib/seatsio/domain.rb', line 261

def ticket_type
  @ticket_type
end