Class: GustoEmbedded::Models::Shared::EmployeeBenefitForCompanyBenefit
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::EmployeeBenefitForCompanyBenefit
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/employee_benefit_for_company_benefit.rb
Overview
The representation of an employee benefit for a company benefit.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(employee_uuid:, version: nil, contribution: nil, effective_date: nil, uuid: nil, action: nil, additional_properties: nil, active: true, employee_deduction: '0.00', deduct_as_percentage: false, employee_deduction_annual_maximum: nil, elective: false, company_contribution_annual_maximum: nil, limit_option: nil, retirement_loan_identifier: nil, coverage_amount: nil, deduction_reduces_taxable_income: nil, company_contribution: '0.00', contribute_as_percentage: false, expiration_date: nil, catch_up: false, coverage_salary_multiplier: '0.00') ⇒ EmployeeBenefitForCompanyBenefit
constructor
A new instance of EmployeeBenefitForCompanyBenefit.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(employee_uuid:, version: nil, contribution: nil, effective_date: nil, uuid: nil, action: nil, additional_properties: nil, active: true, employee_deduction: '0.00', deduct_as_percentage: false, employee_deduction_annual_maximum: nil, elective: false, company_contribution_annual_maximum: nil, limit_option: nil, retirement_loan_identifier: nil, coverage_amount: nil, deduction_reduces_taxable_income: nil, company_contribution: '0.00', contribute_as_percentage: false, expiration_date: nil, catch_up: false, coverage_salary_multiplier: '0.00') ⇒ EmployeeBenefitForCompanyBenefit
Returns a new instance of EmployeeBenefitForCompanyBenefit.
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/gusto_embedded/models/shared/employee_benefit_for_company_benefit.rb', line 69 def initialize(employee_uuid:, version: nil, contribution: nil, effective_date: nil, uuid: nil, action: nil, additional_properties: nil, active: true, employee_deduction: '0.00', deduct_as_percentage: false, employee_deduction_annual_maximum: nil, elective: false, company_contribution_annual_maximum: nil, limit_option: nil, retirement_loan_identifier: nil, coverage_amount: nil, deduction_reduces_taxable_income: nil, company_contribution: '0.00', contribute_as_percentage: false, expiration_date: nil, catch_up: false, coverage_salary_multiplier: '0.00') @employee_uuid = employee_uuid @version = version @contribution = contribution @effective_date = effective_date @uuid = uuid @action = action @additional_properties = additional_properties @active = active @employee_deduction = employee_deduction @deduct_as_percentage = deduct_as_percentage @employee_deduction_annual_maximum = employee_deduction_annual_maximum @elective = elective @company_contribution_annual_maximum = company_contribution_annual_maximum @limit_option = limit_option @retirement_loan_identifier = retirement_loan_identifier @coverage_amount = coverage_amount @deduction_reduces_taxable_income = deduction_reduces_taxable_income @company_contribution = company_contribution @contribute_as_percentage = contribute_as_percentage @expiration_date = expiration_date @catch_up = catch_up @coverage_salary_multiplier = coverage_salary_multiplier end |
Instance Method Details
#==(other) ⇒ Object
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
# File 'lib/gusto_embedded/models/shared/employee_benefit_for_company_benefit.rb', line 95 def ==(other) return false unless other.is_a? self.class return false unless @employee_uuid == other.employee_uuid return false unless @version == other.version return false unless @contribution == other.contribution return false unless @effective_date == other.effective_date return false unless @uuid == other.uuid return false unless @action == other.action return false unless @additional_properties == other.additional_properties return false unless @active == other.active return false unless @employee_deduction == other.employee_deduction return false unless @deduct_as_percentage == other.deduct_as_percentage return false unless @employee_deduction_annual_maximum == other.employee_deduction_annual_maximum 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 @retirement_loan_identifier == other.retirement_loan_identifier return false unless @coverage_amount == other.coverage_amount return false unless @deduction_reduces_taxable_income == other.deduction_reduces_taxable_income return false unless @company_contribution == other.company_contribution return false unless @contribute_as_percentage == other.contribute_as_percentage return false unless @expiration_date == other.expiration_date return false unless @catch_up == other.catch_up return false unless @coverage_salary_multiplier == other.coverage_salary_multiplier true end |