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



170
171
172
173
174
175
176
177
# File 'lib/seatsio/domain.rb', line 170

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

Instance Attribute Details

#extra_dataObject (readonly)

Returns the value of attribute extra_data.



167
168
169
# File 'lib/seatsio/domain.rb', line 167

def extra_data
  @extra_data
end

#hold_tokenObject (readonly)

Returns the value of attribute hold_token.



167
168
169
# File 'lib/seatsio/domain.rb', line 167

def hold_token
  @hold_token
end

#order_idObject (readonly)

Returns the value of attribute order_id.



167
168
169
# File 'lib/seatsio/domain.rb', line 167

def order_id
  @order_id
end

#quantityObject (readonly)

Returns the value of attribute quantity.



167
168
169
# File 'lib/seatsio/domain.rb', line 167

def quantity
  @quantity
end

#statusObject (readonly)

Returns the value of attribute status.



167
168
169
# File 'lib/seatsio/domain.rb', line 167

def status
  @status
end

#ticket_typeObject (readonly)

Returns the value of attribute ticket_type.



167
168
169
# File 'lib/seatsio/domain.rb', line 167

def ticket_type
  @ticket_type
end