Class: Unit::Types::BeneficialOwner
- Inherits:
-
Object
- Object
- Unit::Types::BeneficialOwner
- Defined in:
- lib/unit/types/beneficial_owner.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#date_of_birth ⇒ Object
readonly
Returns the value of attribute date_of_birth.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#full_name ⇒ Object
readonly
Returns the value of attribute full_name.
-
#nationality ⇒ Object
readonly
Returns the value of attribute nationality.
-
#passport ⇒ Object
readonly
Returns the value of attribute passport.
-
#percentage ⇒ Object
readonly
Returns the value of attribute percentage.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
-
#ssn ⇒ Object
readonly
Returns the value of attribute ssn.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
- #initialize(full_name, date_of_birth, address, phone, email, ssn, status = nil, passport = nil, nationality = nil, percentage = nil) ⇒ BeneficialOwner constructor
- #represent ⇒ Object
Constructor Details
#initialize(full_name, date_of_birth, address, phone, email, ssn, status = nil, passport = nil, nationality = nil, percentage = nil) ⇒ BeneficialOwner
25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/unit/types/beneficial_owner.rb', line 25 def initialize(full_name, date_of_birth, address, phone, email, ssn, status = nil, passport = nil, nationality = nil, percentage = nil) @full_name = full_name @date_of_birth = date_of_birth @address = address @phone = phone @email = email @status = status @ssn = ssn @passport = passport @nationality = nationality @percentage = percentage end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
6 7 8 |
# File 'lib/unit/types/beneficial_owner.rb', line 6 def address @address end |
#date_of_birth ⇒ Object (readonly)
Returns the value of attribute date_of_birth.
6 7 8 |
# File 'lib/unit/types/beneficial_owner.rb', line 6 def date_of_birth @date_of_birth end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
6 7 8 |
# File 'lib/unit/types/beneficial_owner.rb', line 6 def email @email end |
#full_name ⇒ Object (readonly)
Returns the value of attribute full_name.
6 7 8 |
# File 'lib/unit/types/beneficial_owner.rb', line 6 def full_name @full_name end |
#nationality ⇒ Object (readonly)
Returns the value of attribute nationality.
6 7 8 |
# File 'lib/unit/types/beneficial_owner.rb', line 6 def nationality @nationality end |
#passport ⇒ Object (readonly)
Returns the value of attribute passport.
6 7 8 |
# File 'lib/unit/types/beneficial_owner.rb', line 6 def passport @passport end |
#percentage ⇒ Object (readonly)
Returns the value of attribute percentage.
6 7 8 |
# File 'lib/unit/types/beneficial_owner.rb', line 6 def percentage @percentage end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
6 7 8 |
# File 'lib/unit/types/beneficial_owner.rb', line 6 def phone @phone end |
#ssn ⇒ Object (readonly)
Returns the value of attribute ssn.
6 7 8 |
# File 'lib/unit/types/beneficial_owner.rb', line 6 def ssn @ssn end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/unit/types/beneficial_owner.rb', line 6 def status @status end |
Instance Method Details
#represent ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/unit/types/beneficial_owner.rb', line 39 def represent payload = { fullName: full_name.represent, dateOfBirth: date_of_birth, address: address.represent, phone: phone.represent, email: email, ssn: ssn, status: status, passport: passport, nationality: nationality, percentage: percentage } payload.compact end |