Class: Seatsio::Domain::EventReportItem
- Inherits:
-
Object
- Object
- Seatsio::Domain::EventReportItem
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#capacity ⇒ Object
readonly
Returns the value of attribute capacity.
-
#category_key ⇒ Object
readonly
Returns the value of attribute category_key.
-
#category_label ⇒ Object
readonly
Returns the value of attribute category_label.
-
#entrance ⇒ Object
readonly
Returns the value of attribute entrance.
-
#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.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#labels ⇒ Object
readonly
Returns the value of attribute labels.
-
#num_booked ⇒ Object
readonly
Returns the value of attribute num_booked.
-
#num_free ⇒ Object
readonly
Returns the value of attribute num_free.
-
#num_held ⇒ Object
readonly
Returns the value of attribute num_held.
-
#object_type ⇒ Object
readonly
Returns the value of attribute object_type.
-
#order_id ⇒ Object
readonly
Returns the value of attribute order_id.
-
#section ⇒ Object
readonly
Returns the value of attribute section.
-
#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) ⇒ EventReportItem
constructor
A new instance of EventReportItem.
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
#capacity ⇒ Object (readonly)
Returns the value of attribute capacity.
265 266 267 |
# File 'lib/seatsio/domain.rb', line 265 def capacity @capacity end |
#category_key ⇒ Object (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_label ⇒ Object (readonly)
Returns the value of attribute category_label.
265 266 267 |
# File 'lib/seatsio/domain.rb', line 265 def category_label @category_label end |
#entrance ⇒ Object (readonly)
Returns the value of attribute entrance.
265 266 267 |
# File 'lib/seatsio/domain.rb', line 265 def entrance @entrance end |
#extra_data ⇒ Object (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_sale ⇒ Object (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_token ⇒ Object (readonly)
Returns the value of attribute hold_token.
265 266 267 |
# File 'lib/seatsio/domain.rb', line 265 def hold_token @hold_token end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
265 266 267 |
# File 'lib/seatsio/domain.rb', line 265 def label @label end |
#labels ⇒ Object (readonly)
Returns the value of attribute labels.
265 266 267 |
# File 'lib/seatsio/domain.rb', line 265 def labels @labels end |
#num_booked ⇒ Object (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_free ⇒ Object (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_held ⇒ Object (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_type ⇒ Object (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_id ⇒ Object (readonly)
Returns the value of attribute order_id.
265 266 267 |
# File 'lib/seatsio/domain.rb', line 265 def order_id @order_id end |
#section ⇒ Object (readonly)
Returns the value of attribute section.
265 266 267 |
# File 'lib/seatsio/domain.rb', line 265 def section @section end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
265 266 267 |
# File 'lib/seatsio/domain.rb', line 265 def status @status end |
#ticket_type ⇒ Object (readonly)
Returns the value of attribute ticket_type.
265 266 267 |
# File 'lib/seatsio/domain.rb', line 265 def ticket_type @ticket_type end |