Class: Idnow::Identification
- Inherits:
-
Object
- Object
- Idnow::Identification
- Extended by:
- Forwardable
- Includes:
- Jsonable
- Defined in:
- lib/idnow/models/identification.rb
Instance Attribute Summary collapse
-
#attachments ⇒ Object
Returns the value of attribute attachments.
-
#contact_data ⇒ Object
Returns the value of attribute contact_data.
-
#esigning ⇒ Object
Returns the value of attribute esigning.
-
#identification_document ⇒ Object
Returns the value of attribute identification_document.
-
#identification_process ⇒ Object
Returns the value of attribute identification_process.
-
#raw_data ⇒ Object
Returns the value of attribute raw_data.
-
#user_data ⇒ Object
Returns the value of attribute user_data.
Instance Method Summary collapse
- #esigning? ⇒ Boolean
-
#initialize(data) ⇒ Identification
constructor
A new instance of Identification.
Methods included from Jsonable
Constructor Details
#initialize(data) ⇒ Identification
Returns a new instance of Identification.
13 14 15 16 17 18 19 20 21 |
# File 'lib/idnow/models/identification.rb', line 13 def initialize(data) @identification_process = IdentificationProcess.new(data['identificationprocess']) @contact_data = ContactData.new(data['contactdata']) @user_data = UserData.new(data['userdata']) @identification_document = IdentificationDocument.new(data.fetch('identificationdocument', {})) @attachments = data['attachments'] @esigning = data['esigning'] @raw_data = data end |
Instance Attribute Details
#attachments ⇒ Object
Returns the value of attribute attachments.
10 11 12 |
# File 'lib/idnow/models/identification.rb', line 10 def @attachments end |
#contact_data ⇒ Object
Returns the value of attribute contact_data.
10 11 12 |
# File 'lib/idnow/models/identification.rb', line 10 def contact_data @contact_data end |
#esigning ⇒ Object
Returns the value of attribute esigning.
10 11 12 |
# File 'lib/idnow/models/identification.rb', line 10 def esigning @esigning end |
#identification_document ⇒ Object
Returns the value of attribute identification_document.
10 11 12 |
# File 'lib/idnow/models/identification.rb', line 10 def identification_document @identification_document end |
#identification_process ⇒ Object
Returns the value of attribute identification_process.
10 11 12 |
# File 'lib/idnow/models/identification.rb', line 10 def identification_process @identification_process end |
#raw_data ⇒ Object
Returns the value of attribute raw_data.
10 11 12 |
# File 'lib/idnow/models/identification.rb', line 10 def raw_data @raw_data end |
#user_data ⇒ Object
Returns the value of attribute user_data.
10 11 12 |
# File 'lib/idnow/models/identification.rb', line 10 def user_data @user_data end |
Instance Method Details
#esigning? ⇒ Boolean
23 24 25 |
# File 'lib/idnow/models/identification.rb', line 23 def esigning? !@esigning.nil? end |