Class: Seatsio::HoldToken

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ HoldToken

Returns a new instance of HoldToken.



328
329
330
331
332
333
# File 'lib/seatsio/domain.rb', line 328

def initialize(data)
  @hold_token = data['holdToken']
  @expires_at = Time.parse(data['expiresAt'])
  @expires_in_seconds = data['expiresInSeconds']
  @workspace_key = data['workspaceKey']
end

Instance Attribute Details

#expires_atObject (readonly)

Returns the value of attribute expires_at.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def expires_at
  @expires_at
end

#expires_in_secondsObject (readonly)

Returns the value of attribute expires_in_seconds.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def expires_in_seconds
  @expires_in_seconds
end

#hold_tokenObject (readonly)

Returns the value of attribute hold_token.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def hold_token
  @hold_token
end

#workspace_keyObject (readonly)

Returns the value of attribute workspace_key.



326
327
328
# File 'lib/seatsio/domain.rb', line 326

def workspace_key
  @workspace_key
end