Sha256: 1cbe457ac871bd27f5f1a4bb6b82ca453e9e28e8f7507eabab3a05472909c5e4

Contents?: true

Size: 510 Bytes

Versions: 28

Compression:

Stored size: 510 Bytes

Contents

# This source file contains the ETL::Row class.

module ETL #:nodoc:
  # This class represents a single row currently passing through the ETL pipeline
  class Row < Hash
    # Accessor for the originating source
    attr_accessor :source
    
    # All change types
    CHANGE_TYPES = [:insert, :update, :delete]
    
    # Accessor for the row's change type
    attr_accessor :change_type
    
    # Get the change type, defaults to :insert
    def change_type
      @change_type ||= :insert
    end
  end
end

Version data entries

28 entries across 28 versions & 9 rubygems

Version Path
balinterdi-activewarehouse-etl-0.9.2 lib/etl/row.rb
activewarehouse-etl-0.8.0 lib/etl/row.rb
activewarehouse-etl-0.8.4 lib/etl/row.rb
activewarehouse-etl-0.9.0 lib/etl/row.rb
activewarehouse-etl-0.8.1 lib/etl/row.rb
activewarehouse-etl-0.8.2 lib/etl/row.rb
activewarehouse-etl-0.8.3 lib/etl/row.rb
activewarehouse-etl-0.9.1 lib/etl/row.rb