Class: GustoEmbedded::Models::Shared::CompanyBenefitWithEmployeeBenefits
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::CompanyBenefitWithEmployeeBenefits
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/company_benefit_with_employee_benefits.rb
Overview
The representation of a company benefit.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid:, version: nil, company_uuid: nil, benefit_type: nil, description: nil, source: nil, deletable: nil, supports_percentage_amounts: nil, responsible_for_employer_taxes: nil, responsible_for_employee_w2: nil, employee_benefits: nil, active: true, partner_name: nil, catch_up_type: nil) ⇒ CompanyBenefitWithEmployeeBenefits
constructor
A new instance of CompanyBenefitWithEmployeeBenefits.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid:, version: nil, company_uuid: nil, benefit_type: nil, description: nil, source: nil, deletable: nil, supports_percentage_amounts: nil, responsible_for_employer_taxes: nil, responsible_for_employee_w2: nil, employee_benefits: nil, active: true, partner_name: nil, catch_up_type: nil) ⇒ CompanyBenefitWithEmployeeBenefits
Returns a new instance of CompanyBenefitWithEmployeeBenefits.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/gusto_embedded/models/shared/company_benefit_with_employee_benefits.rb', line 45 def initialize(uuid:, version: nil, company_uuid: nil, benefit_type: nil, description: nil, source: nil, deletable: nil, supports_percentage_amounts: nil, responsible_for_employer_taxes: nil, responsible_for_employee_w2: nil, employee_benefits: nil, active: true, partner_name: nil, catch_up_type: nil) @uuid = uuid @version = version @company_uuid = company_uuid @benefit_type = benefit_type @description = description @source = source @deletable = deletable @supports_percentage_amounts = supports_percentage_amounts @responsible_for_employer_taxes = responsible_for_employer_taxes @responsible_for_employee_w2 = responsible_for_employee_w2 @employee_benefits = employee_benefits @active = active @partner_name = partner_name @catch_up_type = catch_up_type end |
Instance Method Details
#==(other) ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/gusto_embedded/models/shared/company_benefit_with_employee_benefits.rb', line 63 def ==(other) return false unless other.is_a? self.class return false unless @uuid == other.uuid return false unless @version == other.version return false unless @company_uuid == other.company_uuid return false unless @benefit_type == other.benefit_type return false unless @description == other.description return false unless @source == other.source return false unless @deletable == other.deletable return false unless @supports_percentage_amounts == other.supports_percentage_amounts return false unless @responsible_for_employer_taxes == other.responsible_for_employer_taxes return false unless @responsible_for_employee_w2 == other.responsible_for_employee_w2 return false unless @employee_benefits == other.employee_benefits return false unless @active == other.active return false unless @partner_name == other.partner_name return false unless @catch_up_type == other.catch_up_type true end |