Class: Identisure::Ftn::Completed
- Inherits:
-
Object
- Object
- Identisure::Ftn::Completed
- Defined in:
- lib/identisure/ftn.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.
-
#bank_name ⇒ Object
readonly
Returns the value of attribute bank_name.
-
#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, bank_name: 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, bank_name: nil, authenticated_at: nil) ⇒ Completed
Returns a new instance of Completed.
49 50 51 52 53 54 55 56 57 58 |
# File 'lib/identisure/ftn.rb', line 49 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, bank_name: 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 @bank_name = bank_name; @authenticated_at = authenticated_at end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
45 46 47 |
# File 'lib/identisure/ftn.rb', line 45 def address @address end |
#authenticated_at ⇒ Object (readonly)
Returns the value of attribute authenticated_at.
45 46 47 |
# File 'lib/identisure/ftn.rb', line 45 def authenticated_at @authenticated_at end |
#bank_id ⇒ Object (readonly)
Returns the value of attribute bank_id.
45 46 47 |
# File 'lib/identisure/ftn.rb', line 45 def bank_id @bank_id end |
#bank_name ⇒ Object (readonly)
Returns the value of attribute bank_name.
45 46 47 |
# File 'lib/identisure/ftn.rb', line 45 def bank_name @bank_name end |
#birth_date ⇒ Object (readonly)
Returns the value of attribute birth_date.
45 46 47 |
# File 'lib/identisure/ftn.rb', line 45 def birth_date @birth_date end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
45 46 47 |
# File 'lib/identisure/ftn.rb', line 45 def email @email end |
#given_name ⇒ Object (readonly)
Returns the value of attribute given_name.
45 46 47 |
# File 'lib/identisure/ftn.rb', line 45 def given_name @given_name end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
45 46 47 |
# File 'lib/identisure/ftn.rb', line 45 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
45 46 47 |
# File 'lib/identisure/ftn.rb', line 45 def name @name end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
45 46 47 |
# File 'lib/identisure/ftn.rb', line 45 def phone @phone end |
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
45 46 47 |
# File 'lib/identisure/ftn.rb', line 45 def pid @pid end |
#ref_id ⇒ Object (readonly)
Returns the value of attribute ref_id.
45 46 47 |
# File 'lib/identisure/ftn.rb', line 45 def ref_id @ref_id end |
#ssn ⇒ Object (readonly)
Returns the value of attribute ssn.
45 46 47 |
# File 'lib/identisure/ftn.rb', line 45 def ssn @ssn end |
#surname ⇒ Object (readonly)
Returns the value of attribute surname.
45 46 47 |
# File 'lib/identisure/ftn.rb', line 45 def surname @surname end |
Class Method Details
.from_json(d) ⇒ Object
67 68 69 70 71 72 73 |
# File 'lib/identisure/ftn.rb', line 67 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'], bank_name: d['bankName'], authenticated_at: d['authenticatedAt']) end |
Instance Method Details
#deconstruct_keys(_) ⇒ Object
60 61 62 63 64 65 |
# File 'lib/identisure/ftn.rb', line 60 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, bank_name: @bank_name, authenticated_at: @authenticated_at } end |