Sha256: 38fd9df5d72ddac2e2cf8c3355de19381efb2b24dcc2a106a441a027d4a5aca3

Contents?: true

Size: 490 Bytes

Versions: 7

Compression:

Stored size: 490 Bytes

Contents

# frozen_string_literal: true

module Ductr
  module ETL
    #
    # Base class for implementing transforms.
    #
    class Transform < Control
      #
      # Calls the control method and passes the row.
      #
      # @param [Object] row The row to process
      #
      # @return [void]
      #
      def process(row)
        call_method(row)
      end

      #
      # Called when the last row is reached.
      #
      # @return [void]
      #
      def close; end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ductr-0.2.3 lib/ductr/etl/controls/transform.rb
ductr-0.2.2 lib/ductr/etl/controls/transform.rb
ductr-0.2.1 lib/ductr/etl/controls/transform.rb
ductr-0.2.0 lib/ductr/etl/controls/transform.rb
ductr-0.1.2 lib/ductr/etl/controls/transform.rb
ductr-0.1.1 lib/ductr/etl/controls/transform.rb
ductr-0.1.0 lib/ductr/etl/controls/transform.rb