Class: GustoEmbedded::Models::Shared::CompanyBenefitUpdateRequest

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(version:, active: nil, description: nil, responsible_for_employer_taxes: nil, responsible_for_employee_w2: nil, catch_up_type: nil) ⇒ CompanyBenefitUpdateRequest

Returns a new instance of CompanyBenefitUpdateRequest.



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

def initialize(version:, active: nil, description: nil, responsible_for_employer_taxes: nil, responsible_for_employee_w2: nil, catch_up_type: nil)
  @version = version
  @active = active
  @description = description
  @responsible_for_employer_taxes = responsible_for_employer_taxes
  @responsible_for_employee_w2 = responsible_for_employee_w2
  @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_update_request.rb', line 39

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