Class: Identisure::Freja::Completed
- Inherits:
-
Object
- Object
- Identisure::Freja::Completed
- Defined in:
- lib/identisure/freja.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.
-
#company_signatory_text ⇒ Object
readonly
Returns the value of attribute company_signatory_text.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#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.
-
#ref_id ⇒ Object
readonly
Returns the value of attribute ref_id.
-
#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:, country:, name:, given_name:, surname:, ref_id: nil, address: nil, company_signatory_text: nil, authenticated_at: nil, signed_at: nil) ⇒ Completed
constructor
A new instance of Completed.
Constructor Details
#initialize(id:, ssn:, country:, name:, given_name:, surname:, ref_id: nil, address: nil, company_signatory_text: nil, authenticated_at: nil, signed_at: nil) ⇒ Completed
Returns a new instance of Completed.
107 108 109 110 111 112 113 114 |
# File 'lib/identisure/freja.rb', line 107 def initialize(id:, ssn:, country:, name:, given_name:, surname:, ref_id: nil, address: nil, company_signatory_text: nil, authenticated_at: nil, signed_at: nil) @id = id; @ref_id = ref_id; @ssn = ssn; @country = country @name = name; @given_name = given_name; @surname = surname @address = address; @company_signatory_text = company_signatory_text @authenticated_at = authenticated_at; @signed_at = signed_at end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
104 105 106 |
# File 'lib/identisure/freja.rb', line 104 def address @address end |
#authenticated_at ⇒ Object (readonly)
Returns the value of attribute authenticated_at.
104 105 106 |
# File 'lib/identisure/freja.rb', line 104 def authenticated_at @authenticated_at end |
#company_signatory_text ⇒ Object (readonly)
Returns the value of attribute company_signatory_text.
104 105 106 |
# File 'lib/identisure/freja.rb', line 104 def company_signatory_text @company_signatory_text end |
#country ⇒ Object (readonly)
Returns the value of attribute country.
104 105 106 |
# File 'lib/identisure/freja.rb', line 104 def country @country end |
#given_name ⇒ Object (readonly)
Returns the value of attribute given_name.
104 105 106 |
# File 'lib/identisure/freja.rb', line 104 def given_name @given_name end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
104 105 106 |
# File 'lib/identisure/freja.rb', line 104 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
104 105 106 |
# File 'lib/identisure/freja.rb', line 104 def name @name end |
#ref_id ⇒ Object (readonly)
Returns the value of attribute ref_id.
104 105 106 |
# File 'lib/identisure/freja.rb', line 104 def ref_id @ref_id end |
#signed_at ⇒ Object (readonly)
Returns the value of attribute signed_at.
104 105 106 |
# File 'lib/identisure/freja.rb', line 104 def signed_at @signed_at end |
#ssn ⇒ Object (readonly)
Returns the value of attribute ssn.
104 105 106 |
# File 'lib/identisure/freja.rb', line 104 def ssn @ssn end |
#surname ⇒ Object (readonly)
Returns the value of attribute surname.
104 105 106 |
# File 'lib/identisure/freja.rb', line 104 def surname @surname end |
Class Method Details
.from_json(d) ⇒ Object
123 124 125 126 127 128 129 130 |
# File 'lib/identisure/freja.rb', line 123 def self.from_json(d) new( id: d['id'], ref_id: d['refId'], ssn: d['ssn'], country: d['country'], name: d['name'], given_name: d['givenName'], surname: d['surname'], address: d['address'], company_signatory_text: d['companySignatoryText'], authenticated_at: d['authenticatedAt'], signed_at: d['signedAt'] ) end |
Instance Method Details
#deconstruct_keys(_) ⇒ Object
116 117 118 119 120 121 |
# File 'lib/identisure/freja.rb', line 116 def deconstruct_keys(_) { id: @id, ref_id: @ref_id, ssn: @ssn, country: @country, name: @name, given_name: @given_name, surname: @surname, address: @address, company_signatory_text: @company_signatory_text, authenticated_at: @authenticated_at, signed_at: @signed_at } end |