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
aeden-activewarehouse-etl-0.9.1 etl/lib/etl/row.rb
colincasey-activewarehouse-etl-0.9.4 lib/etl/row.rb
colincasey-activewarehouse-etl-0.9.5 lib/etl/row.rb
factorylabs-activewarehouse-etl-0.9.1.2 lib/etl/row.rb
factorylabs-activewarehouse-etl-0.9.1.3 lib/etl/row.rb
factorylabs-activewarehouse-etl-0.9.1.4 lib/etl/row.rb
factorylabs-activewarehouse-etl-0.9.1.5 lib/etl/row.rb
factorylabs-activewarehouse-etl-0.9.1.6 lib/etl/row.rb
factorylabs-activewarehouse-etl-0.9.1.7 lib/etl/row.rb
jayzes-activewarehouse-etl-0.9.1.1 lib/etl/row.rb
jayzes-activewarehouse-etl-0.9.1.2 lib/etl/row.rb
jayzes-activewarehouse-etl-0.9.1 lib/etl/row.rb
activewarehouse-etl-1.0.0 lib/etl/row.rb
activewarehouse-etl-1.0.0.rc1 lib/etl/row.rb
etl-0.9.5.rc1 lib/etl/row.rb
activewarehouse-etl-sgonyea-0.9.6 lib/etl/row.rb
activewarehouse-etl-0.9.5.rc1 lib/etl/row.rb
darrell-activewarehouse-etl-0.9.1.6 lib/etl/row.rb
darrell-activewarehouse-etl-0.9.1.4 lib/etl/row.rb
factorylabs-activewarehouse-etl-0.9.1.8 lib/etl/row.rb