Class: Identisure::BankIdNo::Completed
- Inherits:
-
Object
- Object
- Identisure::BankIdNo::Completed
- Defined in:
- lib/identisure/bank_id_no.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#authenticated_at ⇒ Object
readonly
Returns the value of attribute authenticated_at.
-
#bank_id ⇒ Object
readonly
Returns the value of attribute bank_id.
-
#birth_date ⇒ Object
readonly
Returns the value of attribute birth_date.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#given_name ⇒ Object
readonly
Returns the value of attribute given_name.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
-
#pid ⇒ Object
readonly
Returns the value of attribute pid.
-
#ref_id ⇒ Object
readonly
Returns the value of attribute ref_id.
-
#sign_result ⇒ Object
readonly
Returns the value of attribute sign_result.
-
#signed_at ⇒ Object
readonly
Returns the value of attribute signed_at.
-
#signed_documents ⇒ Object
readonly
Returns the value of attribute signed_documents.
-
#ssn ⇒ Object
readonly
Returns the value of attribute ssn.
-
#surname ⇒ Object
readonly
Returns the value of attribute surname.
Class Method Summary collapse
Instance Method Summary collapse
- #deconstruct_keys(_) ⇒ Object
-
#initialize(id:, ssn:, name:, given_name:, surname:, ref_id: nil, phone: nil, email: nil, address: nil, birth_date: nil, pid: nil, bank_id: nil, sign_result: nil, signed_documents: nil, authenticated_at: nil, signed_at: nil) ⇒ Completed
constructor
A new instance of Completed.
Constructor Details
#initialize(id:, ssn:, name:, given_name:, surname:, ref_id: nil, phone: nil, email: nil, address: nil, birth_date: nil, pid: nil, bank_id: nil, sign_result: nil, signed_documents: nil, authenticated_at: nil, signed_at: nil) ⇒ Completed
Returns a new instance of Completed.
97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/identisure/bank_id_no.rb', line 97 def initialize(id:, ssn:, name:, given_name:, surname:, ref_id: nil, phone: nil, email: nil, address: nil, birth_date: nil, pid: nil, bank_id: nil, sign_result: nil, signed_documents: nil, authenticated_at: nil, signed_at: nil) @id = id; @ref_id = ref_id; @ssn = ssn; @name = name @given_name = given_name; @surname = surname; @phone = phone @email = email; @address = address; @birth_date = birth_date @pid = pid; @bank_id = bank_id; @sign_result = sign_result @signed_documents = signed_documents @authenticated_at = authenticated_at; @signed_at = signed_at end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
93 94 95 |
# File 'lib/identisure/bank_id_no.rb', line 93 def address @address end |
#authenticated_at ⇒ Object (readonly)
Returns the value of attribute authenticated_at.
93 94 95 |
# File 'lib/identisure/bank_id_no.rb', line 93 def authenticated_at @authenticated_at end |
#bank_id ⇒ Object (readonly)
Returns the value of attribute bank_id.
93 94 95 |
# File 'lib/identisure/bank_id_no.rb', line 93 def bank_id @bank_id end |
#birth_date ⇒ Object (readonly)
Returns the value of attribute birth_date.
93 94 95 |
# File 'lib/identisure/bank_id_no.rb', line 93 def birth_date @birth_date end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
93 94 95 |
# File 'lib/identisure/bank_id_no.rb', line 93 def email @email end |
#given_name ⇒ Object (readonly)
Returns the value of attribute given_name.
93 94 95 |
# File 'lib/identisure/bank_id_no.rb', line 93 def given_name @given_name end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
93 94 95 |
# File 'lib/identisure/bank_id_no.rb', line 93 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
93 94 95 |
# File 'lib/identisure/bank_id_no.rb', line 93 def name @name end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
93 94 95 |
# File 'lib/identisure/bank_id_no.rb', line 93 def phone @phone end |
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
93 94 95 |
# File 'lib/identisure/bank_id_no.rb', line 93 def pid @pid end |
#ref_id ⇒ Object (readonly)
Returns the value of attribute ref_id.
93 94 95 |
# File 'lib/identisure/bank_id_no.rb', line 93 def ref_id @ref_id end |
#sign_result ⇒ Object (readonly)
Returns the value of attribute sign_result.
93 94 95 |
# File 'lib/identisure/bank_id_no.rb', line 93 def sign_result @sign_result end |
#signed_at ⇒ Object (readonly)
Returns the value of attribute signed_at.
93 94 95 |
# File 'lib/identisure/bank_id_no.rb', line 93 def signed_at @signed_at end |
#signed_documents ⇒ Object (readonly)
Returns the value of attribute signed_documents.
93 94 95 |
# File 'lib/identisure/bank_id_no.rb', line 93 def signed_documents @signed_documents end |
#ssn ⇒ Object (readonly)
Returns the value of attribute ssn.
93 94 95 |
# File 'lib/identisure/bank_id_no.rb', line 93 def ssn @ssn end |
#surname ⇒ Object (readonly)
Returns the value of attribute surname.
93 94 95 |
# File 'lib/identisure/bank_id_no.rb', line 93 def surname @surname end |
Class Method Details
.from_json(d) ⇒ Object
117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/identisure/bank_id_no.rb', line 117 def self.from_json(d) new( id: d['id'], ref_id: d['refId'], ssn: d['ssn'], name: d['name'], given_name: d['givenName'], surname: d['surname'], phone: d['phone'], email: d['email'], address: d['address'], birth_date: d['birthDate'], pid: d['pid'], bank_id: d['bankId'], sign_result: d['signResult'] ? SignResult.from_json(d['signResult']) : nil, signed_documents: d['signedDocuments']&.map { SignedDocument.from_json(_1) }, authenticated_at: d['authenticatedAt'], signed_at: d['signedAt'] ) end |
Instance Method Details
#deconstruct_keys(_) ⇒ Object
109 110 111 112 113 114 115 |
# File 'lib/identisure/bank_id_no.rb', line 109 def deconstruct_keys(_) { id: @id, ref_id: @ref_id, ssn: @ssn, name: @name, given_name: @given_name, surname: @surname, phone: @phone, email: @email, address: @address, birth_date: @birth_date, pid: @pid, bank_id: @bank_id, sign_result: @sign_result, signed_documents: @signed_documents, authenticated_at: @authenticated_at, signed_at: @signed_at } end |