Class: GustoEmbedded::Models::Shared::CompanyBenefitCreateRequest

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(description:, benefit_type: nil, responsible_for_employer_taxes: nil, responsible_for_employee_w2: nil, active: true, catch_up_type: nil) ⇒ CompanyBenefitCreateRequest

Returns a new instance of CompanyBenefitCreateRequest.



29
30
31
32
33
34
35
36
# File 'lib/gusto_embedded/models/shared/company_benefit_create_request.rb', line 29

def initialize(description:, benefit_type: nil, responsible_for_employer_taxes: nil, responsible_for_employee_w2: nil, active: true, catch_up_type: nil)
  @description = description
  @benefit_type = benefit_type
  @responsible_for_employer_taxes = responsible_for_employer_taxes
  @responsible_for_employee_w2 = responsible_for_employee_w2
  @active = active
  @catch_up_type = catch_up_type
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/gusto_embedded/models/shared/company_benefit_create_request.rb', line 39

def ==(other)
  return false unless other.is_a? self.class
  return false unless @description == other.description
  return false unless @benefit_type == other.benefit_type
  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 @catch_up_type == other.catch_up_type
  true
end