Class: Seatsio::EventLogItem

Inherits:
Object
  • Object
show all
Defined in:
lib/seatsio/domain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ EventLogItem

Returns a new instance of EventLogItem.



334
335
336
337
338
339
# File 'lib/seatsio/domain.rb', line 334

def initialize(data)
  @id = data['id']
  @type = data['type']
  @timestamp = DateTime.iso8601(data['timestamp'])
  @data = data['data']
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



332
333
334
# File 'lib/seatsio/domain.rb', line 332

def data
  @data
end

#idObject (readonly)

Returns the value of attribute id.



332
333
334
# File 'lib/seatsio/domain.rb', line 332

def id
  @id
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



332
333
334
# File 'lib/seatsio/domain.rb', line 332

def timestamp
  @timestamp
end

#typeObject (readonly)

Returns the value of attribute type.



332
333
334
# File 'lib/seatsio/domain.rb', line 332

def type
  @type
end