Class: Seatsio::ObjectStatus

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

Constant Summary collapse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ ObjectStatus

Returns a new instance of ObjectStatus.



212
213
214
215
216
217
218
219
220
# File 'lib/seatsio/domain.rb', line 212

def initialize(data)
  @status = data['status']
  @hold_token = data['holdToken']
  @order_id = data['orderId']
  @ticket_type = data['ticketType']
  @quantity = data['quantity']
  @extra_data = data['extraData']
  @for_sale = data['forSale']
end

Instance Attribute Details

#extra_dataObject (readonly)

Returns the value of attribute extra_data.



209
210
211
# File 'lib/seatsio/domain.rb', line 209

def extra_data
  @extra_data
end

#for_saleObject (readonly)

Returns the value of attribute for_sale.



209
210
211
# File 'lib/seatsio/domain.rb', line 209

def for_sale
  @for_sale
end

#hold_tokenObject (readonly)

Returns the value of attribute hold_token.



209
210
211
# File 'lib/seatsio/domain.rb', line 209

def hold_token
  @hold_token
end

#order_idObject (readonly)

Returns the value of attribute order_id.



209
210
211
# File 'lib/seatsio/domain.rb', line 209

def order_id
  @order_id
end

#quantityObject (readonly)

Returns the value of attribute quantity.



209
210
211
# File 'lib/seatsio/domain.rb', line 209

def quantity
  @quantity
end

#statusObject (readonly)

Returns the value of attribute status.



209
210
211
# File 'lib/seatsio/domain.rb', line 209

def status
  @status
end

#ticket_typeObject (readonly)

Returns the value of attribute ticket_type.



209
210
211
# File 'lib/seatsio/domain.rb', line 209

def ticket_type
  @ticket_type
end