Class: Yoti::AmlCheckRequest
- Inherits:
-
Object
- Object
- Yoti::AmlCheckRequest
- Defined in:
- lib/yoti/http/aml_check_request.rb
Overview
Manage the API’s AML check requests
Instance Method Summary collapse
-
#initialize(aml_profile) ⇒ AmlCheckRequest
constructor
A new instance of AmlCheckRequest.
-
#response ⇒ String
A JSON representation of the AML check response.
Constructor Details
#initialize(aml_profile) ⇒ AmlCheckRequest
Returns a new instance of AmlCheckRequest.
4 5 6 7 8 |
# File 'lib/yoti/http/aml_check_request.rb', line 4 def initialize(aml_profile) @aml_profile = aml_profile @payload = aml_profile.payload @request = request end |
Instance Method Details
#response ⇒ String
Returns a JSON representation of the AML check response.
11 12 13 |
# File 'lib/yoti/http/aml_check_request.rb', line 11 def response JSON.parse(@request.body) end |