Class: Retab::ReconstructEnrichmentOptions

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

Constant Summary collapse

HASH_ATTRS =
{
  fill_key_spans: :fill_key_spans,
  flatten_header: :flatten_header,
  promote_sections: :promote_sections
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ReconstructEnrichmentOptions

Returns a new instance of ReconstructEnrichmentOptions.



20
21
22
23
24
25
26
# File 'lib/retab/splits/reconstruct_enrichment_options.rb', line 20

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @fill_key_spans = hash[:fill_key_spans]
  @flatten_header = hash[:flatten_header]
  @promote_sections = hash[:promote_sections]
end

Instance Attribute Details

#fill_key_spansObject

Returns the value of attribute fill_key_spans.



14
15
16
# File 'lib/retab/splits/reconstruct_enrichment_options.rb', line 14

def fill_key_spans
  @fill_key_spans
end

#flatten_headerObject

Returns the value of attribute flatten_header.



14
15
16
# File 'lib/retab/splits/reconstruct_enrichment_options.rb', line 14

def flatten_header
  @flatten_header
end

#promote_sectionsObject

Returns the value of attribute promote_sections.



14
15
16
# File 'lib/retab/splits/reconstruct_enrichment_options.rb', line 14

def promote_sections
  @promote_sections
end