Class: Trulioo::API::Verifications::Datasource

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

Overview

Trulioo::API:Verifications:Datasource is the result of an individual datasource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(datasource) ⇒ Datasource

Returns a new instance of Datasource.



15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/trulioo/api/verifications/datasource.rb', line 15

def initialize(datasource)
  @name = datasource['DatasourceName']
  @datasource_fields = Verifications.parse_fields(
    datasource['DatasourceFields'],
    'Status'
  )
  @appended_fields = Verifications.parse_fields(
    datasource['AppendedFields'],
    'Data'
  )
  @errors = datasource['Errors']
  @field_groups = datasource['FieldGroups']
end

Instance Attribute Details

#appended_fieldsObject (readonly)

Returns the value of attribute appended_fields.



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

def appended_fields
  @appended_fields
end

#datasource_fieldsObject (readonly)

Returns the value of attribute datasource_fields.



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

def datasource_fields
  @datasource_fields
end

#errorsObject (readonly)

Returns the value of attribute errors.



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

def errors
  @errors
end

#field_groupsObject (readonly)

Returns the value of attribute field_groups.



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

def field_groups
  @field_groups
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end