Class: Retab::ReconstructEnrichedRow

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/retab/splits/reconstruct_enriched_row.rb

Constant Summary collapse

HASH_ATTRS =
{
  cells: :cells
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cellsObject

Returns the value of attribute cells.



12
13
14
# File 'lib/retab/splits/reconstruct_enriched_row.rb', line 12

def cells
  @cells
end