lib/chronicle/etl/extractors/extractor.rb in chronicle-etl-0.1.2 vs lib/chronicle/etl/extractors/extractor.rb in chronicle-etl-0.1.3

- old
+ new

@@ -1,20 +1,25 @@ +require 'chronicle/etl' + module Chronicle module Etl - module Extractors - class Extractor - def initialize(options = {}) - @options = options.transform_keys!(&:to_sym) - end + class Extractor + extend Chronicle::Etl::Catalog - def extract - raise NotImplementedError - end + ETL_PHASE = :extractor - def results_count; end + def initialize(options = {}) + @options = options.transform_keys!(&:to_sym) end + + def extract + raise NotImplementedError + end + + def results_count; end end end end -require_relative 'stdin' -require_relative 'csv' \ No newline at end of file +require_relative 'csv_extractor' +require_relative 'file_extractor' +require_relative 'stdin_extractor'