Class: Trulioo::API::Verifications::TransactionRecord
- Inherits:
-
Object
- Object
- Trulioo::API::Verifications::TransactionRecord
- Defined in:
- lib/trulioo/api/verifications/transaction_record.rb
Overview
Trulioo::API:Verifications:TransactionRecord holds the information of the transaction record.
Instance Attribute Summary collapse
-
#datasources ⇒ Object
readonly
Returns the value of attribute datasources.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#rule ⇒ Object
readonly
Returns the value of attribute rule.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(record) ⇒ TransactionRecord
constructor
A new instance of TransactionRecord.
Constructor Details
#initialize(record) ⇒ TransactionRecord
Returns a new instance of TransactionRecord.
11 12 13 14 15 16 17 |
# File 'lib/trulioo/api/verifications/transaction_record.rb', line 11 def initialize(record) @id = record['TransactionRecordID'] @datasources = parse_datasources(record['DatasourceResults']) @status = record['RecordStatus'] @errors = record['Errors'] @rule = { record['Rule']['RuleName'] => record['Rule']['Note'] } end |
Instance Attribute Details
#datasources ⇒ Object (readonly)
Returns the value of attribute datasources.
9 10 11 |
# File 'lib/trulioo/api/verifications/transaction_record.rb', line 9 def datasources @datasources end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
9 10 11 |
# File 'lib/trulioo/api/verifications/transaction_record.rb', line 9 def errors @errors end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
9 10 11 |
# File 'lib/trulioo/api/verifications/transaction_record.rb', line 9 def id @id end |
#rule ⇒ Object (readonly)
Returns the value of attribute rule.
9 10 11 |
# File 'lib/trulioo/api/verifications/transaction_record.rb', line 9 def rule @rule end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
9 10 11 |
# File 'lib/trulioo/api/verifications/transaction_record.rb', line 9 def status @status end |