Class: Seatsio::Domain::StatusChange
- Inherits:
-
Object
- Object
- Seatsio::Domain::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.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#object_label ⇒ Object
readonly
Returns the value of attribute object_label.
-
#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.
286 287 288 289 290 291 292 293 |
# File 'lib/seatsio/domain.rb', line 286 def initialize(data) @id = data['id'] @status = data['status'] @date = data['date'] # TODO: parse_date(data.get("date")) @object_label = data['objectLabel'] @event_id = data['eventId'] @extra_data = data['extraData'] end |
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
284 285 286 |
# File 'lib/seatsio/domain.rb', line 284 def date @date end |
#event_id ⇒ Object (readonly)
Returns the value of attribute event_id.
284 285 286 |
# File 'lib/seatsio/domain.rb', line 284 def event_id @event_id end |
#extra_data ⇒ Object (readonly)
Returns the value of attribute extra_data.
284 285 286 |
# File 'lib/seatsio/domain.rb', line 284 def extra_data @extra_data end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
284 285 286 |
# File 'lib/seatsio/domain.rb', line 284 def id @id end |
#object_label ⇒ Object (readonly)
Returns the value of attribute object_label.
284 285 286 |
# File 'lib/seatsio/domain.rb', line 284 def object_label @object_label end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
284 285 286 |
# File 'lib/seatsio/domain.rb', line 284 def status @status end |