Class: FinchAPI::Models::HRIS::W42020

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

Defined Under Namespace

Modules: Type Classes: Data

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data: nil, type: nil, year: nil) ⇒ W42020

A 2020 version of the W-4 tax form containing information on an individual’s

filing status, dependents, and withholding details.

Parameters:



8
# File 'lib/finch-api/models/hris/w42020.rb', line 8

def initialize(data: nil, type: nil, year: nil, **) = super

Instance Attribute Details

#dataFinchAPI::Models::HRIS::W42020::Data?

Detailed information specific to the 2020 W4 form.



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

optional :data, -> { FinchAPI::Models::HRIS::W42020::Data }

#typeSymbol, ...

Specifies the form type, indicating that this document is a 2020 W4 form.

Returns:



21
# File 'lib/finch-api/models/hris/w42020.rb', line 21

optional :type, enum: -> { FinchAPI::Models::HRIS::W42020::Type }

#yearFloat?

The tax year this W4 document applies to.

Returns:

  • (Float, nil)


31
# File 'lib/finch-api/models/hris/w42020.rb', line 31

optional :year, Float, nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


2
# File 'lib/finch-api/models/hris/w42020.rb', line 2

def self.values; end