Class: Seatsio::EventLogItem
- Inherits:
-
Object
- Object
- Seatsio::EventLogItem
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(data) ⇒ EventLogItem
constructor
A new instance of EventLogItem.
Constructor Details
#initialize(data) ⇒ EventLogItem
Returns a new instance of EventLogItem.
333 334 335 336 337 338 |
# File 'lib/seatsio/domain.rb', line 333 def initialize(data) @id = data['id'] @type = data['type'] @timestamp = DateTime.iso8601(data['timestamp']) @data = data['data'] end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
331 332 333 |
# File 'lib/seatsio/domain.rb', line 331 def data @data end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
331 332 333 |
# File 'lib/seatsio/domain.rb', line 331 def id @id end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
331 332 333 |
# File 'lib/seatsio/domain.rb', line 331 def @timestamp end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
331 332 333 |
# File 'lib/seatsio/domain.rb', line 331 def type @type end |