Class: Seatsio::StatusChange
- Inherits:
-
Object
- Object
- Seatsio::StatusChange
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#event_id ⇒ Object
readonly
Returns the value of attribute event_id.
-
#extra_data ⇒ Object
readonly
Returns the value of attribute extra_data.
-
#hold_token ⇒ Object
readonly
Returns the value of attribute hold_token.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#is_present_on_chart ⇒ Object
readonly
Returns the value of attribute is_present_on_chart.
-
#not_present_on_chart_reason ⇒ Object
readonly
Returns the value of attribute not_present_on_chart_reason.
-
#object_label ⇒ Object
readonly
Returns the value of attribute object_label.
-
#order_id ⇒ Object
readonly
Returns the value of attribute order_id.
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
-
#quantity ⇒ Object
readonly
Returns the value of attribute quantity.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(data) ⇒ StatusChange
constructor
A new instance of StatusChange.
Constructor Details
#initialize(data) ⇒ StatusChange
Returns a new instance of StatusChange.
600 601 602 603 604 605 606 607 608 609 610 611 612 613 |
# File 'lib/seatsio/domain.rb', line 600 def initialize(data) @id = data['id'] @status = data['status'] @date = DateTime.iso8601(data['date']) @object_label = data['objectLabel'] @event_id = data['eventId'] @extra_data = data['extraData'] @origin = StatusChangeOrigin.new(data['origin']) @order_id = data['orderId'] @quantity = data['quantity'] @hold_token = data['holdToken'] @is_present_on_chart = data['isPresentOnChart'] @not_present_on_chart_reason = data['notPresentOnChartReason'] end |
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
597 598 599 |
# File 'lib/seatsio/domain.rb', line 597 def date @date end |
#event_id ⇒ Object (readonly)
Returns the value of attribute event_id.
597 598 599 |
# File 'lib/seatsio/domain.rb', line 597 def event_id @event_id end |
#extra_data ⇒ Object (readonly)
Returns the value of attribute extra_data.
597 598 599 |
# File 'lib/seatsio/domain.rb', line 597 def extra_data @extra_data end |
#hold_token ⇒ Object (readonly)
Returns the value of attribute hold_token.
597 598 599 |
# File 'lib/seatsio/domain.rb', line 597 def hold_token @hold_token end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
597 598 599 |
# File 'lib/seatsio/domain.rb', line 597 def id @id end |
#is_present_on_chart ⇒ Object (readonly)
Returns the value of attribute is_present_on_chart.
597 598 599 |
# File 'lib/seatsio/domain.rb', line 597 def is_present_on_chart @is_present_on_chart end |
#not_present_on_chart_reason ⇒ Object (readonly)
Returns the value of attribute not_present_on_chart_reason.
597 598 599 |
# File 'lib/seatsio/domain.rb', line 597 def not_present_on_chart_reason @not_present_on_chart_reason end |
#object_label ⇒ Object (readonly)
Returns the value of attribute object_label.
597 598 599 |
# File 'lib/seatsio/domain.rb', line 597 def object_label @object_label end |
#order_id ⇒ Object (readonly)
Returns the value of attribute order_id.
597 598 599 |
# File 'lib/seatsio/domain.rb', line 597 def order_id @order_id end |
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
597 598 599 |
# File 'lib/seatsio/domain.rb', line 597 def origin @origin end |
#quantity ⇒ Object (readonly)
Returns the value of attribute quantity.
597 598 599 |
# File 'lib/seatsio/domain.rb', line 597 def quantity @quantity end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
597 598 599 |
# File 'lib/seatsio/domain.rb', line 597 def status @status end |