Class: Yoti::ProfileRequest
- Inherits:
-
Object
- Object
- Yoti::ProfileRequest
- Defined in:
- lib/yoti/http/profile_request.rb
Overview
Manage the API’s profile requests
Instance Method Summary collapse
-
#initialize(encrypted_connect_token) ⇒ ProfileRequest
constructor
A new instance of ProfileRequest.
-
#receipt ⇒ String
A JSON representation of the profile response receipt.
Constructor Details
#initialize(encrypted_connect_token) ⇒ ProfileRequest
Returns a new instance of ProfileRequest.
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
#receipt ⇒ String
Returns 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 |