Class: GustoEmbedded::Models::Shared::CompanyBenefit
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::CompanyBenefit
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/company_benefit.rb
Overview
The representation of a company benefit.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid:, version: nil, enrollment_count: 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, active: true, partner_name: nil, catch_up_type: nil) ⇒ CompanyBenefit
constructor
A new instance of CompanyBenefit.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid:, version: nil, enrollment_count: 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, active: true, partner_name: nil, catch_up_type: nil) ⇒ CompanyBenefit
Returns a new instance of CompanyBenefit.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/gusto_embedded/models/shared/company_benefit.rb', line 45 def initialize(uuid:, version: nil, enrollment_count: 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, active: true, partner_name: nil, catch_up_type: nil) @uuid = uuid @version = version @enrollment_count = enrollment_count @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 @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.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 @enrollment_count == other.enrollment_count 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 @active == other.active return false unless @partner_name == other.partner_name return false unless @catch_up_type == other.catch_up_type true end |