Class: Identisure::Vipps::Completed
- Inherits:
-
Object
- Object
- Identisure::Vipps::Completed
- Defined in:
- lib/identisure/vipps.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.
-
#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, authenticated_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, authenticated_at: nil) ⇒ Completed
Returns a new instance of Completed.
65 66 67 68 69 70 71 72 |
# File 'lib/identisure/vipps.rb', line 65 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, authenticated_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; @authenticated_at = authenticated_at end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
61 62 63 |
# File 'lib/identisure/vipps.rb', line 61 def address @address end |
#authenticated_at ⇒ Object (readonly)
Returns the value of attribute authenticated_at.
61 62 63 |
# File 'lib/identisure/vipps.rb', line 61 def authenticated_at @authenticated_at end |
#bank_id ⇒ Object (readonly)
Returns the value of attribute bank_id.
61 62 63 |
# File 'lib/identisure/vipps.rb', line 61 def bank_id @bank_id end |
#birth_date ⇒ Object (readonly)
Returns the value of attribute birth_date.
61 62 63 |
# File 'lib/identisure/vipps.rb', line 61 def birth_date @birth_date end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
61 62 63 |
# File 'lib/identisure/vipps.rb', line 61 def email @email end |
#given_name ⇒ Object (readonly)
Returns the value of attribute given_name.
61 62 63 |
# File 'lib/identisure/vipps.rb', line 61 def given_name @given_name end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
61 62 63 |
# File 'lib/identisure/vipps.rb', line 61 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
61 62 63 |
# File 'lib/identisure/vipps.rb', line 61 def name @name end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
61 62 63 |
# File 'lib/identisure/vipps.rb', line 61 def phone @phone end |
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
61 62 63 |
# File 'lib/identisure/vipps.rb', line 61 def pid @pid end |
#ref_id ⇒ Object (readonly)
Returns the value of attribute ref_id.
61 62 63 |
# File 'lib/identisure/vipps.rb', line 61 def ref_id @ref_id end |
#ssn ⇒ Object (readonly)
Returns the value of attribute ssn.
61 62 63 |
# File 'lib/identisure/vipps.rb', line 61 def ssn @ssn end |
#surname ⇒ Object (readonly)
Returns the value of attribute surname.
61 62 63 |
# File 'lib/identisure/vipps.rb', line 61 def surname @surname end |
Class Method Details
.from_json(d) ⇒ Object
81 82 83 84 85 86 87 88 89 |
# File 'lib/identisure/vipps.rb', line 81 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'], authenticated_at: d['authenticatedAt'] ) end |
Instance Method Details
#deconstruct_keys(_) ⇒ Object
74 75 76 77 78 79 |
# File 'lib/identisure/vipps.rb', line 74 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, authenticated_at: @authenticated_at } end |