Class: LockstepSdk::AgingModel
- Inherits:
-
Object
- Object
- LockstepSdk::AgingModel
- Defined in:
- lib/lockstep_sdk/models/aging_model.rb
Overview
Represents an aging record
Instance Attribute Summary collapse
-
#bucket ⇒ Int32
Aging bucket of outstanding balance data (days past due date of invoice).
-
#currency_code ⇒ String
Currency code of aging bucket.
-
#outstanding_balance ⇒ Double
Outstanding balance for the given aging bucket.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ AgingModel
constructor
Initialize the AgingModel using the provided prototype.
Constructor Details
#initialize(params = {}) ⇒ AgingModel
Initialize the AgingModel using the provided prototype
24 25 26 27 28 |
# File 'lib/lockstep_sdk/models/aging_model.rb', line 24 def initialize(params = {}) @bucket = params.dig(:bucket) @currency_code = params.dig(:currency_code) @outstanding_balance = params.dig(:outstanding_balance) end |
Instance Attribute Details
#bucket ⇒ Int32
Returns Aging bucket of outstanding balance data (days past due date of invoice).
31 32 33 |
# File 'lib/lockstep_sdk/models/aging_model.rb', line 31 def bucket @bucket end |
#currency_code ⇒ String
Returns Currency code of aging bucket.
33 34 35 |
# File 'lib/lockstep_sdk/models/aging_model.rb', line 33 def currency_code @currency_code end |
#outstanding_balance ⇒ Double
Returns Outstanding balance for the given aging bucket.
35 36 37 |
# File 'lib/lockstep_sdk/models/aging_model.rb', line 35 def outstanding_balance @outstanding_balance end |