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.
287 288 289 290 291 292 293 294 |
# File 'lib/seatsio/domain.rb', line 287 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.
285 286 287 |
# File 'lib/seatsio/domain.rb', line 285 def date @date end |
#event_id ⇒ Object (readonly)
Returns the value of attribute event_id.
285 286 287 |
# File 'lib/seatsio/domain.rb', line 285 def event_id @event_id end |
#extra_data ⇒ Object (readonly)
Returns the value of attribute extra_data.
285 286 287 |
# File 'lib/seatsio/domain.rb', line 285 def extra_data @extra_data end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
285 286 287 |
# File 'lib/seatsio/domain.rb', line 285 def id @id end |
#object_label ⇒ Object (readonly)
Returns the value of attribute object_label.
285 286 287 |
# File 'lib/seatsio/domain.rb', line 285 def object_label @object_label end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
285 286 287 |
# File 'lib/seatsio/domain.rb', line 285 def status @status end |