class Yoti::DocScan::Session::Create::CreateSessionResult

The response to a successful CreateSession call

Attributes

client_session_token[R]

Returns the client session token for the created session

@return [String]

client_session_token_ttl[R]

Returns the time-to-live (TTL) for the client session token for the created session

@return [Integer]

session_id[R]

Session ID of the created session

@return [String]

Public Class Methods

new(response) click to toggle source

@param [Hash] response

# File lib/yoti/doc_scan/session/create/create_session_result.rb, line 36
def initialize(response)
  Validation.assert_is_a(Integer, response['client_session_token_ttl'], 'client_session_token_ttl', true)
  @client_session_token_ttl = response['client_session_token_ttl']

  Validation.assert_is_a(String, response['client_session_token'], 'client_session_token', true)
  @client_session_token = response['client_session_token']

  Validation.assert_is_a(String, response['session_id'], 'session_id', true)
  @session_id = response['session_id']
end