Class: BxBuilderChain::Processors::Base

Inherits:
Object
  • Object
show all
Includes:
DependencyHelper
Defined in:
lib/bx_builder_chain/processors/base.rb

Overview

Processors load and parse/process various data types such as CSVs, PDFs, Word documents, HTML pages, and others.

Direct Known Subclasses

Csv, Docx, Html, Json, Pdf, Text, Xlsx

Constant Summary collapse

EXTENSIONS =
[]
CONTENT_TYPES =
[]

Instance Method Summary collapse

Methods included from DependencyHelper

#depends_on

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



12
13
14
# File 'lib/bx_builder_chain/processors/base.rb', line 12

def initialize(options = {})
  @options = options
end

Instance Method Details

#parse(data) ⇒ Object

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/bx_builder_chain/processors/base.rb', line 16

def parse(data)
  raise NotImplementedError
end