Class: GustoEmbedded::Models::Shared::BenefitSummaryEmployees

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(uuid: nil, company_benefit_deduction: nil, company_benefit_contribution: nil, benefit_deduction: nil, benefit_contribution: nil, gross_pay: nil, imputed_pay: nil, payroll_benefits: nil) ⇒ BenefitSummaryEmployees

Returns a new instance of BenefitSummaryEmployees.



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

def initialize(uuid: nil, company_benefit_deduction: nil, company_benefit_contribution: nil, benefit_deduction: nil, benefit_contribution: nil, gross_pay: nil, imputed_pay: nil, payroll_benefits: nil)
  @uuid = uuid
  @company_benefit_deduction = company_benefit_deduction
  @company_benefit_contribution = company_benefit_contribution
  @benefit_deduction = benefit_deduction
  @benefit_contribution = benefit_contribution
  @gross_pay = gross_pay
  @imputed_pay = imputed_pay
  @payroll_benefits = payroll_benefits
end

Instance Method Details

#==(other) ⇒ Object



45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/gusto_embedded/models/shared/benefit_summary_employees.rb', line 45

def ==(other)
  return false unless other.is_a? self.class
  return false unless @uuid == other.uuid
  return false unless @company_benefit_deduction == other.company_benefit_deduction
  return false unless @company_benefit_contribution == other.company_benefit_contribution
  return false unless @benefit_deduction == other.benefit_deduction
  return false unless @benefit_contribution == other.benefit_contribution
  return false unless @gross_pay == other.gross_pay
  return false unless @imputed_pay == other.imputed_pay
  return false unless @payroll_benefits == other.payroll_benefits
  true
end