Class: LockstepSdk::TrialBalanceReportCellModel
- Inherits:
-
Object
- Object
- LockstepSdk::TrialBalanceReportCellModel
- Defined in:
- lib/lockstep_sdk/models/trial_balance_report_cell_model.rb
Overview
Represents a cell of a trial balance report
Instance Attribute Summary collapse
-
#value ⇒ String
The value of the trial balance report cell.
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ object
This object as a JSON key-value structure.
-
#initialize(params = {}) ⇒ TrialBalanceReportCellModel
constructor
Initialize the TrialBalanceReportCellModel using the provided prototype.
-
#to_json(*options) ⇒ String
This object converted to a JSON string.
Constructor Details
#initialize(params = {}) ⇒ TrialBalanceReportCellModel
Initialize the TrialBalanceReportCellModel using the provided prototype
27 28 29 |
# File 'lib/lockstep_sdk/models/trial_balance_report_cell_model.rb', line 27 def initialize(params = {}) @value = params.dig(:value) end |
Instance Attribute Details
#value ⇒ String
33 34 35 |
# File 'lib/lockstep_sdk/models/trial_balance_report_cell_model.rb', line 33 def value @value end |
Instance Method Details
#as_json(options = {}) ⇒ object
37 38 39 40 41 |
# File 'lib/lockstep_sdk/models/trial_balance_report_cell_model.rb', line 37 def as_json(={}) { 'value' => @value, } end |
#to_json(*options) ⇒ String
45 46 47 |
# File 'lib/lockstep_sdk/models/trial_balance_report_cell_model.rb', line 45 def to_json(*) "[#{as_json(*).to_json(*)}]" end |