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.
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#workspace_key ⇒ Object
readonly
Returns the value of attribute workspace_key.
Instance Method Summary collapse
-
#initialize(data) ⇒ EventLogItem
constructor
A new instance of EventLogItem.
Constructor Details
#initialize(data) ⇒ EventLogItem
Returns a new instance of EventLogItem.
265 266 267 268 269 270 271 |
# File 'lib/seatsio/domain.rb', line 265 def initialize(data) @id = data['id'] @workspace_key = data['workspaceKey'] @type = data['type'] @date = DateTime.iso8601(data['date']) @data = data['data'] end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
263 264 265 |
# File 'lib/seatsio/domain.rb', line 263 def data @data end |
#date ⇒ Object (readonly)
Returns the value of attribute date.
263 264 265 |
# File 'lib/seatsio/domain.rb', line 263 def date @date end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
263 264 265 |
# File 'lib/seatsio/domain.rb', line 263 def id @id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
263 264 265 |
# File 'lib/seatsio/domain.rb', line 263 def type @type end |
#workspace_key ⇒ Object (readonly)
Returns the value of attribute workspace_key.
263 264 265 |
# File 'lib/seatsio/domain.rb', line 263 def workspace_key @workspace_key end |