Class: Seatsio::UsageEvent
- Inherits:
-
Object
- Object
- Seatsio::UsageEvent
- Defined in:
- lib/seatsio/domain.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(data) ⇒ UsageEvent
constructor
A new instance of UsageEvent.
Constructor Details
#initialize(data) ⇒ UsageEvent
Returns a new instance of UsageEvent.
550 551 552 553 |
# File 'lib/seatsio/domain.rb', line 550 def initialize(data) @id = data['id'] @key = data['key'] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
548 549 550 |
# File 'lib/seatsio/domain.rb', line 548 def id @id end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
548 549 550 |
# File 'lib/seatsio/domain.rb', line 548 def key @key end |