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.
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
#receipt ⇒ String
Returns 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 |