Class: Trulioo::API::Verifications::Result
- Inherits:
-
Object
- Object
- Trulioo::API::Verifications::Result
- 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
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#input_fields ⇒ Object
readonly
Returns the value of attribute input_fields.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#transaction_id ⇒ Object
readonly
Returns the value of attribute transaction_id.
-
#transaction_record ⇒ Object
readonly
Returns the value of attribute transaction_record.
-
#uploaded_at ⇒ Object
readonly
Returns the value of attribute uploaded_at.
Instance Method Summary collapse
-
#initialize(response) ⇒ Result
constructor
A new instance of Result.
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
#code ⇒ Object (readonly)
Returns the value of attribute code.
9 10 11 |
# File 'lib/trulioo/api/verifications/result.rb', line 9 def code @code end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
9 10 11 |
# File 'lib/trulioo/api/verifications/result.rb', line 9 def errors @errors end |
#input_fields ⇒ Object (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 |
#response ⇒ Object (readonly)
Returns the value of attribute response.
9 10 11 |
# File 'lib/trulioo/api/verifications/result.rb', line 9 def response @response end |
#transaction_id ⇒ Object (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_record ⇒ Object (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_at ⇒ Object (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 |