Class: Trulioo::API::Verifications::TransactionRecord

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#datasourcesObject (readonly)

Returns the value of attribute datasources.



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

def datasources
  @datasources
end

#errorsObject (readonly)

Returns the value of attribute errors.



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

def errors
  @errors
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#ruleObject (readonly)

Returns the value of attribute rule.



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

def rule
  @rule
end

#statusObject (readonly)

Returns the value of attribute status.



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

def status
  @status
end