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.



245
246
247
248
249
250
# File 'lib/seatsio/domain.rb', line 245

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.



243
244
245
# File 'lib/seatsio/domain.rb', line 243

def expires_at
  @expires_at
end

#expires_in_secondsObject (readonly)

Returns the value of attribute expires_in_seconds.



243
244
245
# File 'lib/seatsio/domain.rb', line 243

def expires_in_seconds
  @expires_in_seconds
end

#hold_tokenObject (readonly)

Returns the value of attribute hold_token.



243
244
245
# File 'lib/seatsio/domain.rb', line 243

def hold_token
  @hold_token
end

#workspace_keyObject (readonly)

Returns the value of attribute workspace_key.



243
244
245
# File 'lib/seatsio/domain.rb', line 243

def workspace_key
  @workspace_key
end