Sha256: 047dcea48826730322d8cdf9d5e7e0797be211666facc73806b905f7fa7189fd

Contents?: true

Size: 560 Bytes

Versions: 3

Compression:

Stored size: 560 Bytes

Contents

module ETL #:nodoc:
  module Processor #:nodoc:
    # Base class for pre and post processors. Subclasses must implement the +process+ method.
    class Processor
      def initialize(control, configuration)
        @control = control
        @configuration = configuration
      end
      protected
      def control
        @control
      end
      def configuration
        @configuration
      end
      def log
        unless @log
          @log = Logger.new(STDOUT)
          @log.level = Logger::DEBUG
        end
        @log
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activewarehouse-etl-0.5.0 lib/etl/processor/processor.rb
activewarehouse-etl-0.5.1 lib/etl/processor/processor.rb
activewarehouse-etl-0.5.2 lib/etl/processor/processor.rb