Class: GustoEmbedded::Models::Shared::Signatory
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::Signatory
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/signatory.rb
Overview
The representation of a company’s signatory
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid:, email: nil, is_admin: nil, has_ssn: nil, version: nil, first_name: nil, last_name: nil, title: nil, phone: nil, birthday: nil, identity_verification_status: nil, home_address: nil) ⇒ Signatory
constructor
A new instance of Signatory.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid:, email: nil, is_admin: nil, has_ssn: nil, version: nil, first_name: nil, last_name: nil, title: nil, phone: nil, birthday: nil, identity_verification_status: nil, home_address: nil) ⇒ Signatory
Returns a new instance of Signatory.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/gusto_embedded/models/shared/signatory.rb', line 47 def initialize(uuid:, email: nil, is_admin: nil, has_ssn: nil, version: nil, first_name: nil, last_name: nil, title: nil, phone: nil, birthday: nil, identity_verification_status: nil, home_address: nil) @uuid = uuid @email = email @is_admin = is_admin @has_ssn = has_ssn @version = version @first_name = first_name @last_name = last_name @title = title @phone = phone @birthday = birthday @identity_verification_status = identity_verification_status @home_address = home_address end |
Instance Method Details
#==(other) ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/gusto_embedded/models/shared/signatory.rb', line 63 def ==(other) return false unless other.is_a? self.class return false unless @uuid == other.uuid return false unless @email == other.email return false unless @is_admin == other.is_admin return false unless @has_ssn == other.has_ssn return false unless @version == other.version return false unless @first_name == other.first_name return false unless @last_name == other.last_name return false unless @title == other.title return false unless @phone == other.phone return false unless @birthday == other.birthday return false unless @identity_verification_status == other.identity_verification_status return false unless @home_address == other.home_address true end |