Class: Trulioo::API::Verifications::Datasource
- Inherits:
-
Object
- Object
- Trulioo::API::Verifications::Datasource
- Defined in:
- lib/trulioo/api/verifications/datasource.rb
Overview
Trulioo::API:Verifications:Datasource is the result of an individual datasource.
Instance Attribute Summary collapse
-
#appended_fields ⇒ Object
readonly
Returns the value of attribute appended_fields.
-
#datasource_fields ⇒ Object
readonly
Returns the value of attribute datasource_fields.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#field_groups ⇒ Object
readonly
Returns the value of attribute field_groups.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(datasource) ⇒ Datasource
constructor
A new instance of Datasource.
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_fields ⇒ Object (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_fields ⇒ Object (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 |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
9 10 11 |
# File 'lib/trulioo/api/verifications/datasource.rb', line 9 def errors @errors end |
#field_groups ⇒ Object (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 |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/trulioo/api/verifications/datasource.rb', line 9 def name @name end |