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