Class: GustoEmbedded::Models::Operations::GetV1CompanyBenefitsCompanyBenefitIdRequest

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(company_benefit_id:, with_employee_benefits: nil, include: nil, x_gusto_api_version: Models::Operations::GetV1CompanyBenefitsCompanyBenefitIdHeaderXGustoAPIVersion::TWO_THOUSAND_AND_TWENTY_FIVE_MINUS_06_MINUS_15) ⇒ GetV1CompanyBenefitsCompanyBenefitIdRequest

Returns a new instance of GetV1CompanyBenefitsCompanyBenefitIdRequest.



26
27
28
29
30
31
# File 'lib/gusto_embedded/models/operations/get_v1_company_benefits_company_benefit_id_request.rb', line 26

def initialize(company_benefit_id:, with_employee_benefits: nil, include: nil, x_gusto_api_version: Models::Operations::GetV1CompanyBenefitsCompanyBenefitIdHeaderXGustoAPIVersion::TWO_THOUSAND_AND_TWENTY_FIVE_MINUS_06_MINUS_15)
  @company_benefit_id = company_benefit_id
  @with_employee_benefits = with_employee_benefits
  @include = include
  @x_gusto_api_version = x_gusto_api_version
end

Instance Method Details

#==(other) ⇒ Object



34
35
36
37
38
39
40
41
# File 'lib/gusto_embedded/models/operations/get_v1_company_benefits_company_benefit_id_request.rb', line 34

def ==(other)
  return false unless other.is_a? self.class
  return false unless @company_benefit_id == other.company_benefit_id
  return false unless @with_employee_benefits == other.with_employee_benefits
  return false unless @include == other.include
  return false unless @x_gusto_api_version == other.x_gusto_api_version
  true
end