Class: Seatsio::Domain::UsageEvent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ UsageEvent

Returns a new instance of UsageEvent.



392
393
394
395
# File 'lib/seatsio/domain.rb', line 392

def initialize(data)
  @id = data['id']
  @key = data['key']
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



390
391
392
# File 'lib/seatsio/domain.rb', line 390

def id
  @id
end

#keyObject (readonly)

Returns the value of attribute key.



390
391
392
# File 'lib/seatsio/domain.rb', line 390

def key
  @key
end