Class: FinchAPI::Models::HRIS::BenefitContribution

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/finch-api/models/hris/benefit_contribution.rb

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(amount: nil, type: nil) ⇒ BenefitContribution

Returns a new instance of BenefitContribution.

Parameters:



4
# File 'lib/finch-api/models/hris/benefit_contribution.rb', line 4

def initialize(amount: nil, type: nil, **) = super

Instance Attribute Details

#amountInteger?

Contribution amount in cents (if ‘fixed`) or basis points (if `percent`).

Returns:

  • (Integer, nil)


11
# File 'lib/finch-api/models/hris/benefit_contribution.rb', line 11

optional :amount, Integer, nil?: true

#typeSymbol, ...

Contribution type.



17
# File 'lib/finch-api/models/hris/benefit_contribution.rb', line 17

optional :type, enum: -> { FinchAPI::Models::HRIS::BenefitContribution::Type }, nil?: true