Class: GustoEmbedded::Models::Shared::PayrollShowBenefits

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/payroll_show_benefits.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(name: nil, employee_deduction: nil, company_contribution: nil, imputed: nil) ⇒ PayrollShowBenefits

Returns a new instance of PayrollShowBenefits.



25
26
27
28
29
30
# File 'lib/gusto_embedded/models/shared/payroll_show_benefits.rb', line 25

def initialize(name: nil, employee_deduction: nil, company_contribution: nil, imputed: nil)
  @name = name
  @employee_deduction = employee_deduction
  @company_contribution = company_contribution
  @imputed = imputed
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/gusto_embedded/models/shared/payroll_show_benefits.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @name == other.name
  return false unless @employee_deduction == other.employee_deduction
  return false unless @company_contribution == other.company_contribution
  return false unless @imputed == other.imputed
  true
end