Class: Trulioo::API::Verifications::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/trulioo/api/verifications/result.rb

Overview

Trulioo::API:Verifications:Result is a wrapper for the verifications endpoints’ response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Result

Returns a new instance of Result.



17
18
19
20
21
# File 'lib/trulioo/api/verifications/result.rb', line 17

def initialize(response)
  @code = response.code
  @response = response
  parse_response(response.parsed_response) if code == 200
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



9
10
11
# File 'lib/trulioo/api/verifications/result.rb', line 9

def code
  @code
end

#errorsObject (readonly)

Returns the value of attribute errors.



9
10
11
# File 'lib/trulioo/api/verifications/result.rb', line 9

def errors
  @errors
end

#input_fieldsObject (readonly)

Returns the value of attribute input_fields.



9
10
11
# File 'lib/trulioo/api/verifications/result.rb', line 9

def input_fields
  @input_fields
end

#responseObject (readonly)

Returns the value of attribute response.



9
10
11
# File 'lib/trulioo/api/verifications/result.rb', line 9

def response
  @response
end

#transaction_idObject (readonly)

Returns the value of attribute transaction_id.



9
10
11
# File 'lib/trulioo/api/verifications/result.rb', line 9

def transaction_id
  @transaction_id
end

#transaction_recordObject (readonly)

Returns the value of attribute transaction_record.



9
10
11
# File 'lib/trulioo/api/verifications/result.rb', line 9

def transaction_record
  @transaction_record
end

#uploaded_atObject (readonly)

Returns the value of attribute uploaded_at.



9
10
11
# File 'lib/trulioo/api/verifications/result.rb', line 9

def uploaded_at
  @uploaded_at
end