Class: Identisure::MitId::Completed
- Inherits:
-
Object
- Object
- Identisure::MitId::Completed
- Defined in:
- lib/identisure/mit_id.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.
-
#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, 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, authenticated_at: nil, signed_at: nil) ⇒ Completed
Returns a new instance of Completed.
85 86 87 88 89 90 91 92 93 94 |
# File 'lib/identisure/mit_id.rb', line 85 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, 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 @authenticated_at = authenticated_at; @signed_at = signed_at end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
81 82 83 |
# File 'lib/identisure/mit_id.rb', line 81 def address @address end |
#authenticated_at ⇒ Object (readonly)
Returns the value of attribute authenticated_at.
81 82 83 |
# File 'lib/identisure/mit_id.rb', line 81 def authenticated_at @authenticated_at end |
#bank_id ⇒ Object (readonly)
Returns the value of attribute bank_id.
81 82 83 |
# File 'lib/identisure/mit_id.rb', line 81 def bank_id @bank_id end |
#birth_date ⇒ Object (readonly)
Returns the value of attribute birth_date.
81 82 83 |
# File 'lib/identisure/mit_id.rb', line 81 def birth_date @birth_date end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
81 82 83 |
# File 'lib/identisure/mit_id.rb', line 81 def email @email end |
#given_name ⇒ Object (readonly)
Returns the value of attribute given_name.
81 82 83 |
# File 'lib/identisure/mit_id.rb', line 81 def given_name @given_name end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
81 82 83 |
# File 'lib/identisure/mit_id.rb', line 81 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
81 82 83 |
# File 'lib/identisure/mit_id.rb', line 81 def name @name end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
81 82 83 |
# File 'lib/identisure/mit_id.rb', line 81 def phone @phone end |
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
81 82 83 |
# File 'lib/identisure/mit_id.rb', line 81 def pid @pid end |
#ref_id ⇒ Object (readonly)
Returns the value of attribute ref_id.
81 82 83 |
# File 'lib/identisure/mit_id.rb', line 81 def ref_id @ref_id end |
#sign_result ⇒ Object (readonly)
Returns the value of attribute sign_result.
81 82 83 |
# File 'lib/identisure/mit_id.rb', line 81 def sign_result @sign_result end |
#signed_at ⇒ Object (readonly)
Returns the value of attribute signed_at.
81 82 83 |
# File 'lib/identisure/mit_id.rb', line 81 def signed_at @signed_at end |
#ssn ⇒ Object (readonly)
Returns the value of attribute ssn.
81 82 83 |
# File 'lib/identisure/mit_id.rb', line 81 def ssn @ssn end |
#surname ⇒ Object (readonly)
Returns the value of attribute surname.
81 82 83 |
# File 'lib/identisure/mit_id.rb', line 81 def surname @surname end |
Class Method Details
.from_json(d) ⇒ Object
104 105 106 107 108 109 110 111 112 113 |
# File 'lib/identisure/mit_id.rb', line 104 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, authenticated_at: d['authenticatedAt'], signed_at: d['signedAt'] ) end |
Instance Method Details
#deconstruct_keys(_) ⇒ Object
96 97 98 99 100 101 102 |
# File 'lib/identisure/mit_id.rb', line 96 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, authenticated_at: @authenticated_at, signed_at: @signed_at } end |