Class: FinchAPI::Models::HRIS::CompanyBenefit::CompanyContribution::Tier

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/finch_api/models/hris/company_benefit.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!

Constructor Details

#initialize(tiers: nil, type: nil) ⇒ Object

The company match for this benefit.

Parameters:

  • tiers (Array<FinchAPI::HRIS::CompanyBenefit::CompanyContribution::Tier>) (defaults to: nil)
  • type (Symbol, FinchAPI::HRIS::CompanyBenefit::CompanyContribution::Type) (defaults to: nil)


69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/finch_api/models/hris/company_benefit.rb', line 69

class Tier < FinchAPI::Internal::Type::BaseModel
  # @!attribute match
  #
  #   @return [Integer, nil]
  optional :match, Integer

  # @!attribute threshold
  #
  #   @return [Integer, nil]
  optional :threshold, Integer

  # @!method initialize(match: nil, threshold: nil)
  #   @param match [Integer]
  #   @param threshold [Integer]
end

Instance Attribute Details

#matchInteger?

Returns:

  • (Integer, nil)


73
# File 'lib/finch_api/models/hris/company_benefit.rb', line 73

optional :match, Integer

#thresholdInteger?

Returns:

  • (Integer, nil)


78
# File 'lib/finch_api/models/hris/company_benefit.rb', line 78

optional :threshold, Integer