Class: Yoti::ProfileRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/yoti/http/profile_request.rb

Overview

Manage the API’s profile requests

Instance Method Summary collapse

Constructor Details

#initialize(encrypted_connect_token) ⇒ ProfileRequest

Returns a new instance of ProfileRequest.

Parameters:

  • encrypted_connect_token (String)


7
8
9
10
# File 'lib/yoti/http/profile_request.rb', line 7

def initialize(encrypted_connect_token)
  @encrypted_connect_token = encrypted_connect_token
  @request = request
end

Instance Method Details

#receiptString

Returns a JSON representation of the profile response receipt.

Returns:

  • (String)

    a JSON representation of the profile response receipt



13
14
15
# File 'lib/yoti/http/profile_request.rb', line 13

def receipt
  JSON.parse(@request.body)['receipt']
end