Class: Yoti::AmlCheckRequest

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

Overview

Manage the API’s AML check requests

Instance Method Summary collapse

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

#responseString

Returns a JSON representation of the AML check response.

Returns:

  • (String)

    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