Class: Seatsio::Domain::ObjectStatus
- Inherits:
-
Object
- Object
- Seatsio::Domain::ObjectStatus
- Defined in:
- lib/seatsio/domain.rb
Constant Summary collapse
- FREE =
'free'
- BOOKED =
'booked'
- HELD =
'reservedByToken'
Instance Attribute Summary collapse
-
#extra_data ⇒ Object
readonly
Returns the value of attribute extra_data.
-
#for_sale ⇒ Object
readonly
Returns the value of attribute for_sale.
-
#hold_token ⇒ Object
readonly
Returns the value of attribute hold_token.
-
#order_id ⇒ Object
readonly
Returns the value of attribute order_id.
-
#quantity ⇒ Object
readonly
Returns the value of attribute quantity.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#ticket_type ⇒ Object
readonly
Returns the value of attribute ticket_type.
Instance Method Summary collapse
-
#initialize(data) ⇒ ObjectStatus
constructor
A new instance of ObjectStatus.
Constructor Details
#initialize(data) ⇒ ObjectStatus
Returns a new instance of ObjectStatus.
184 185 186 187 188 189 190 191 192 |
# File 'lib/seatsio/domain.rb', line 184 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_data ⇒ Object (readonly)
Returns the value of attribute extra_data.
181 182 183 |
# File 'lib/seatsio/domain.rb', line 181 def extra_data @extra_data end |
#for_sale ⇒ Object (readonly)
Returns the value of attribute for_sale.
181 182 183 |
# File 'lib/seatsio/domain.rb', line 181 def for_sale @for_sale end |
#hold_token ⇒ Object (readonly)
Returns the value of attribute hold_token.
181 182 183 |
# File 'lib/seatsio/domain.rb', line 181 def hold_token @hold_token end |
#order_id ⇒ Object (readonly)
Returns the value of attribute order_id.
181 182 183 |
# File 'lib/seatsio/domain.rb', line 181 def order_id @order_id end |
#quantity ⇒ Object (readonly)
Returns the value of attribute quantity.
181 182 183 |
# File 'lib/seatsio/domain.rb', line 181 def quantity @quantity end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
181 182 183 |
# File 'lib/seatsio/domain.rb', line 181 def status @status end |
#ticket_type ⇒ Object (readonly)
Returns the value of attribute ticket_type.
181 182 183 |
# File 'lib/seatsio/domain.rb', line 181 def ticket_type @ticket_type end |