Class: Callcredit::Checks::IDEnhanced
- Inherits:
-
Object
- Object
- Callcredit::Checks::IDEnhanced
- Defined in:
- lib/callcredit/checks/id_enhanced.rb
Constant Summary collapse
- REQUIRED_INPUTS =
[:date_of_birth, :first_name, :last_name, :postcode]
Instance Method Summary collapse
-
#initialize(client) ⇒ IDEnhanced
constructor
A new instance of IDEnhanced.
- #perform(data = {}) ⇒ Object
Constructor Details
#initialize(client) ⇒ IDEnhanced
Returns a new instance of IDEnhanced.
6 7 8 |
# File 'lib/callcredit/checks/id_enhanced.rb', line 6 def initialize(client) @client = client end |
Instance Method Details
#perform(data = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/callcredit/checks/id_enhanced.rb', line 10 def perform(data = {}) check_params(data) response = @client.perform_check(:id_enhanced, personal_data: data) @client.config[:raw] ? response : Response.new(response) end |