Class: GustoEmbedded::Models::Shared::EmployeeBenefitUpdateRequest

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(version:, active: nil, deduct_as_percentage: nil, effective_date: nil, contribution: nil, employee_deduction: '0.00', employee_deduction_annual_maximum: nil, expiration_date: nil, elective: false, company_contribution_annual_maximum: nil, limit_option: nil, catch_up: false, coverage_amount: nil, deduction_reduces_taxable_income: nil, coverage_salary_multiplier: '0.00', company_contribution: '0.00', contribute_as_percentage: false) ⇒ EmployeeBenefitUpdateRequest

Returns a new instance of EmployeeBenefitUpdateRequest.



60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'lib/gusto_embedded/models/shared/employee_benefit_update_request.rb', line 60

def initialize(version:, active: nil, deduct_as_percentage: nil, effective_date: nil, contribution: nil, employee_deduction: '0.00', employee_deduction_annual_maximum: nil, expiration_date: nil, elective: false, company_contribution_annual_maximum: nil, limit_option: nil, catch_up: false, coverage_amount: nil, deduction_reduces_taxable_income: nil, coverage_salary_multiplier: '0.00', company_contribution: '0.00', contribute_as_percentage: false)
  @version = version
  @active = active
  @deduct_as_percentage = deduct_as_percentage
  @effective_date = effective_date
  @contribution = contribution
  @employee_deduction = employee_deduction
  @employee_deduction_annual_maximum = employee_deduction_annual_maximum
  @expiration_date = expiration_date
  @elective = elective
  @company_contribution_annual_maximum = company_contribution_annual_maximum
  @limit_option = limit_option
  @catch_up = catch_up
  @coverage_amount = coverage_amount
  @deduction_reduces_taxable_income = deduction_reduces_taxable_income
  @coverage_salary_multiplier = coverage_salary_multiplier
  @company_contribution = company_contribution
  @contribute_as_percentage = contribute_as_percentage
end

Instance Method Details

#==(other) ⇒ Object



81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'lib/gusto_embedded/models/shared/employee_benefit_update_request.rb', line 81

def ==(other)
  return false unless other.is_a? self.class
  return false unless @version == other.version
  return false unless @active == other.active
  return false unless @deduct_as_percentage == other.deduct_as_percentage
  return false unless @effective_date == other.effective_date
  return false unless @contribution == other.contribution
  return false unless @employee_deduction == other.employee_deduction
  return false unless @employee_deduction_annual_maximum == other.employee_deduction_annual_maximum
  return false unless @expiration_date == other.expiration_date
  return false unless @elective == other.elective
  return false unless @company_contribution_annual_maximum == other.company_contribution_annual_maximum
  return false unless @limit_option == other.limit_option
  return false unless @catch_up == other.catch_up
  return false unless @coverage_amount == other.coverage_amount
  return false unless @deduction_reduces_taxable_income == other.deduction_reduces_taxable_income
  return false unless @coverage_salary_multiplier == other.coverage_salary_multiplier
  return false unless @company_contribution == other.company_contribution
  return false unless @contribute_as_percentage == other.contribute_as_percentage
  true
end