Class: Unit::Types::PowerOfAttorneyAgent
- Inherits:
-
Object
- Object
- Unit::Types::PowerOfAttorneyAgent
- Defined in:
- lib/unit/types/power_of_attorney_agent.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.
-
#jwt_subject ⇒ Object
readonly
Returns the value of attribute jwt_subject.
-
#nationality ⇒ Object
readonly
Returns the value of attribute nationality.
-
#passport ⇒ Object
readonly
Returns the value of attribute passport.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
-
#ssn ⇒ Object
readonly
Returns the value of attribute ssn.
Instance Method Summary collapse
-
#initialize(full_name, ssn, nationality, date_of_birth, address, phone, email, passport = nil, jwt_subject = nil) ⇒ PowerOfAttorneyAgent
constructor
A new instance of PowerOfAttorneyAgent.
- #represent ⇒ Object
Constructor Details
#initialize(full_name, ssn, nationality, date_of_birth, address, phone, email, passport = nil, jwt_subject = nil) ⇒ PowerOfAttorneyAgent
Returns a new instance of PowerOfAttorneyAgent.
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/unit/types/power_of_attorney_agent.rb', line 18 def initialize(full_name, ssn, nationality, date_of_birth, address, phone, email, passport = nil, jwt_subject = nil) @full_name = full_name @ssn = ssn @passport = passport @nationality = nationality @date_of_birth = date_of_birth @address = address @phone = phone @email = email @jwt_subject = jwt_subject end |
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
6 7 8 |
# File 'lib/unit/types/power_of_attorney_agent.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/power_of_attorney_agent.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/power_of_attorney_agent.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/power_of_attorney_agent.rb', line 6 def full_name @full_name end |
#jwt_subject ⇒ Object (readonly)
Returns the value of attribute jwt_subject.
6 7 8 |
# File 'lib/unit/types/power_of_attorney_agent.rb', line 6 def jwt_subject @jwt_subject end |
#nationality ⇒ Object (readonly)
Returns the value of attribute nationality.
6 7 8 |
# File 'lib/unit/types/power_of_attorney_agent.rb', line 6 def nationality @nationality end |
#passport ⇒ Object (readonly)
Returns the value of attribute passport.
6 7 8 |
# File 'lib/unit/types/power_of_attorney_agent.rb', line 6 def passport @passport end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
6 7 8 |
# File 'lib/unit/types/power_of_attorney_agent.rb', line 6 def phone @phone end |
#ssn ⇒ Object (readonly)
Returns the value of attribute ssn.
6 7 8 |
# File 'lib/unit/types/power_of_attorney_agent.rb', line 6 def ssn @ssn end |
Instance Method Details
#represent ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/unit/types/power_of_attorney_agent.rb', line 30 def represent { fullName: full_name.represent, ssn: ssn, passport: passport, nationality: nationality, dateOfBirth: date_of_birth, address: address.represent, phone: phone.represent, email: email, jwtSubject: jwt_subject }.compact! end |