Class: GustoEmbedded::Models::Shared::PrimarySignatory
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::PrimarySignatory
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/primary_signatory.rb
Overview
The primary signatory of the company.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid: nil, first_name: nil, last_name: nil, phone: nil, email: nil, home_address: nil, middle_initial: nil) ⇒ PrimarySignatory
constructor
A new instance of PrimarySignatory.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid: nil, first_name: nil, last_name: nil, phone: nil, email: nil, home_address: nil, middle_initial: nil) ⇒ PrimarySignatory
Returns a new instance of PrimarySignatory.
31 32 33 34 35 36 37 38 39 |
# File 'lib/gusto_embedded/models/shared/primary_signatory.rb', line 31 def initialize(uuid: nil, first_name: nil, last_name: nil, phone: nil, email: nil, home_address: nil, middle_initial: nil) @uuid = uuid @first_name = first_name @last_name = last_name @phone = phone @email = email @home_address = home_address @middle_initial = middle_initial end |
Instance Method Details
#==(other) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/gusto_embedded/models/shared/primary_signatory.rb', line 42 def ==(other) return false unless other.is_a? self.class return false unless @uuid == other.uuid return false unless @first_name == other.first_name return false unless @last_name == other.last_name return false unless @phone == other.phone return false unless @email == other.email return false unless @home_address == other.home_address return false unless @middle_initial == other.middle_initial true end |