Class: GustoEmbedded::Models::Shared::YtdBenefitAmountsFromDifferentCompany

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

Overview

Ytd Benefit Amounts From Different Company

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(uuid:, benefit_type:, ytd_employee_deduction_amount:, ytd_company_contribution_amount:) ⇒ YtdBenefitAmountsFromDifferentCompany

Returns a new instance of YtdBenefitAmountsFromDifferentCompany.



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

def initialize(uuid:, benefit_type:, ytd_employee_deduction_amount:, ytd_company_contribution_amount:)
  @uuid = uuid
  @benefit_type = benefit_type
  @ytd_employee_deduction_amount = ytd_employee_deduction_amount
  @ytd_company_contribution_amount = ytd_company_contribution_amount
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @uuid == other.uuid
  return false unless @benefit_type == other.benefit_type
  return false unless @ytd_employee_deduction_amount == other.ytd_employee_deduction_amount
  return false unless @ytd_company_contribution_amount == other.ytd_company_contribution_amount
  true
end