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.



295
296
297
298
299
300
# File 'lib/seatsio/domain.rb', line 295

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.



293
294
295
# File 'lib/seatsio/domain.rb', line 293

def expires_at
  @expires_at
end

#expires_in_secondsObject (readonly)

Returns the value of attribute expires_in_seconds.



293
294
295
# File 'lib/seatsio/domain.rb', line 293

def expires_in_seconds
  @expires_in_seconds
end

#hold_tokenObject (readonly)

Returns the value of attribute hold_token.



293
294
295
# File 'lib/seatsio/domain.rb', line 293

def hold_token
  @hold_token
end

#workspace_keyObject (readonly)

Returns the value of attribute workspace_key.



293
294
295
# File 'lib/seatsio/domain.rb', line 293

def workspace_key
  @workspace_key
end