Class: GustoEmbedded::Models::Shared::EmployeeBenefitCreateRequest
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::EmployeeBenefitCreateRequest
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/employee_benefit_create_request.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(company_benefit_uuid:, contribution: 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, catch_up: false, coverage_amount: nil, coverage_salary_multiplier: '0.00', deduction_reduces_taxable_income: nil, company_contribution: '0.00', contribute_as_percentage: false, effective_date: Date.parse('1970-01-01'), expiration_date: nil) ⇒ EmployeeBenefitCreateRequest
constructor
A new instance of EmployeeBenefitCreateRequest.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(company_benefit_uuid:, contribution: 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, catch_up: false, coverage_amount: nil, coverage_salary_multiplier: '0.00', deduction_reduces_taxable_income: nil, company_contribution: '0.00', contribute_as_percentage: false, effective_date: Date.parse('1970-01-01'), expiration_date: nil) ⇒ EmployeeBenefitCreateRequest
Returns a new instance of EmployeeBenefitCreateRequest.
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_create_request.rb', line 60 def initialize(company_benefit_uuid:, contribution: 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, catch_up: false, coverage_amount: nil, coverage_salary_multiplier: '0.00', deduction_reduces_taxable_income: nil, company_contribution: '0.00', contribute_as_percentage: false, effective_date: Date.parse('1970-01-01'), expiration_date: nil) @company_benefit_uuid = company_benefit_uuid @contribution = contribution @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 @catch_up = catch_up @coverage_amount = coverage_amount @coverage_salary_multiplier = coverage_salary_multiplier @deduction_reduces_taxable_income = deduction_reduces_taxable_income @company_contribution = company_contribution @contribute_as_percentage = contribute_as_percentage @effective_date = effective_date @expiration_date = expiration_date 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_create_request.rb', line 81 def ==(other) return false unless other.is_a? self.class return false unless @company_benefit_uuid == other.company_benefit_uuid return false unless @contribution == other.contribution 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 @catch_up == other.catch_up return false unless @coverage_amount == other.coverage_amount return false unless @coverage_salary_multiplier == other.coverage_salary_multiplier 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 @effective_date == other.effective_date return false unless @expiration_date == other.expiration_date true end |