Class: GustoEmbedded::Models::Shared::BenefitSummary

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(start_date: nil, end_date: nil, description: nil, company_benefit_deduction: nil, company_benefit_contribution: nil, employees: nil) ⇒ BenefitSummary

Returns a new instance of BenefitSummary.



29
30
31
32
33
34
35
36
# File 'lib/gusto_embedded/models/shared/benefit_summary.rb', line 29

def initialize(start_date: nil, end_date: nil, description: nil, company_benefit_deduction: nil, company_benefit_contribution: nil, employees: nil)
  @start_date = start_date
  @end_date = end_date
  @description = description
  @company_benefit_deduction = company_benefit_deduction
  @company_benefit_contribution = company_benefit_contribution
  @employees = employees
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/gusto_embedded/models/shared/benefit_summary.rb', line 39

def ==(other)
  return false unless other.is_a? self.class
  return false unless @start_date == other.start_date
  return false unless @end_date == other.end_date
  return false unless @description == other.description
  return false unless @company_benefit_deduction == other.company_benefit_deduction
  return false unless @company_benefit_contribution == other.company_benefit_contribution
  return false unless @employees == other.employees
  true
end