Class: Retab::ReconstructEnrichedRow
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::ReconstructEnrichedRow
- Defined in:
- lib/retab/splits/reconstruct_enriched_row.rb
Constant Summary collapse
- HASH_ATTRS =
{ cells: :cells }.freeze
Instance Attribute Summary collapse
-
#cells ⇒ Object
Returns the value of attribute cells.
Instance Method Summary collapse
-
#initialize(json) ⇒ ReconstructEnrichedRow
constructor
A new instance of ReconstructEnrichedRow.
Constructor Details
#initialize(json) ⇒ ReconstructEnrichedRow
Returns a new instance of ReconstructEnrichedRow.
14 15 16 17 18 |
# File 'lib/retab/splits/reconstruct_enriched_row.rb', line 14 def initialize(json) super() hash = self.class.normalize(json) @cells = (hash[:cells] || []) end |
Instance Attribute Details
#cells ⇒ Object
Returns the value of attribute cells.
12 13 14 |
# File 'lib/retab/splits/reconstruct_enriched_row.rb', line 12 def cells @cells end |