Class: LockstepSdk::FinancialReportCellModel
- Inherits:
-
Object
- Object
- LockstepSdk::FinancialReportCellModel
- Defined in:
- lib/lockstep_sdk/models/financial_report_cell_model.rb
Overview
Represents a cell of a financial report
Instance Attribute Summary collapse
-
#value ⇒ String
The value of the financial report cell.
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ object
This object as a JSON key-value structure.
-
#initialize(params = {}) ⇒ FinancialReportCellModel
constructor
Initialize the FinancialReportCellModel using the provided prototype.
-
#to_json(*options) ⇒ String
This object converted to a JSON string.
Constructor Details
#initialize(params = {}) ⇒ FinancialReportCellModel
Initialize the FinancialReportCellModel using the provided prototype
25 26 27 |
# File 'lib/lockstep_sdk/models/financial_report_cell_model.rb', line 25 def initialize(params = {}) @value = params.dig(:value) end |
Instance Attribute Details
#value ⇒ String
Returns The value of the financial report cell.
31 32 33 |
# File 'lib/lockstep_sdk/models/financial_report_cell_model.rb', line 31 def value @value end |
Instance Method Details
#as_json(options = {}) ⇒ object
Returns This object as a JSON key-value structure.
35 36 37 38 39 |
# File 'lib/lockstep_sdk/models/financial_report_cell_model.rb', line 35 def as_json(={}) { 'value' => @value, } end |
#to_json(*options) ⇒ String
Returns This object converted to a JSON string.
43 44 45 |
# File 'lib/lockstep_sdk/models/financial_report_cell_model.rb', line 43 def to_json(*) "[#{as_json(*options).to_json(*options)}]" end |