Class: GustoEmbedded::Models::Shared::PrimaryPayrollAdmin
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::PrimaryPayrollAdmin
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/primary_payroll_admin.rb
Overview
The primary payroll admin of the company.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(first_name: nil, last_name: nil, email: nil, phone: nil) ⇒ PrimaryPayrollAdmin
constructor
A new instance of PrimaryPayrollAdmin.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(first_name: nil, last_name: nil, email: nil, phone: nil) ⇒ PrimaryPayrollAdmin
Returns a new instance of PrimaryPayrollAdmin.
25 26 27 28 29 30 |
# File 'lib/gusto_embedded/models/shared/primary_payroll_admin.rb', line 25 def initialize(first_name: nil, last_name: nil, email: nil, phone: nil) @first_name = first_name @last_name = last_name @email = email @phone = phone end |
Instance Method Details
#==(other) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/gusto_embedded/models/shared/primary_payroll_admin.rb', line 33 def ==(other) return false unless other.is_a? self.class return false unless @first_name == other.first_name return false unless @last_name == other.last_name return false unless @email == other.email return false unless @phone == other.phone true end |