Class: FinchAPI::Models::Income
- Defined in:
- lib/finch-api/models/income.rb
Defined Under Namespace
Modules: Unit
Instance Attribute Summary collapse
-
#amount ⇒ Integer?
The income amount in cents.
-
#currency ⇒ String?
The currency code.
-
#effective_date ⇒ String?
The date the income amount went into effect.
-
#unit ⇒ Symbol, ...
The income unit of payment.
Instance Method Summary collapse
-
#initialize(amount: nil, currency: nil, effective_date: nil, unit: nil) ⇒ Income
constructor
The employee’s income as reported by the provider.
Constructor Details
#initialize(amount: nil, currency: nil, effective_date: nil, unit: nil) ⇒ Income
The employee’s income as reported by the provider. This may not always be
annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
depending on what information the provider returns.
10 |
# File 'lib/finch-api/models/income.rb', line 10 def initialize(amount: nil, currency: nil, effective_date: nil, unit: nil, **) = super |
Instance Attribute Details
#amount ⇒ Integer?
The income amount in cents.
10 |
# File 'lib/finch-api/models/income.rb', line 10 optional :amount, Integer, nil?: true |
#currency ⇒ String?
The currency code.
16 |
# File 'lib/finch-api/models/income.rb', line 16 optional :currency, String, nil?: true |
#effective_date ⇒ String?
The date the income amount went into effect.
22 |
# File 'lib/finch-api/models/income.rb', line 22 optional :effective_date, String, nil?: true |