Class: Retab::ReconstructEnrichmentOptions
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::ReconstructEnrichmentOptions
- 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
-
#fill_key_spans ⇒ Object
Returns the value of attribute fill_key_spans.
-
#flatten_header ⇒ Object
Returns the value of attribute flatten_header.
-
#promote_sections ⇒ Object
Returns the value of attribute promote_sections.
Instance Method Summary collapse
-
#initialize(json) ⇒ ReconstructEnrichmentOptions
constructor
A new instance of ReconstructEnrichmentOptions.
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_spans ⇒ Object
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_header ⇒ Object
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_sections ⇒ Object
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 |