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.



4
5
6
7
# File 'lib/yoti/http/profile_request.rb', line 4

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



10
11
12
# File 'lib/yoti/http/profile_request.rb', line 10

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