Sha256: 6f05c8806752808251141824b8cf51b8c959e826251a76574921b31dff27ef06

Contents?: true

Size: 415 Bytes

Versions: 8

Compression:

Stored size: 415 Bytes

Contents

module ETL #:nodoc:
  module Execution #:nodoc:
    # Represents a single record
    class Record < ETL::Execution::Base
      belongs_to :table
      class << self
        attr_accessor :time_spent
        def time_spent
          @time_spent ||= 0
        end
        def average_time_spent
          return 0 if time_spent == 0
          ETL::Engine.rows_read / time_spent
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
factorylabs-activewarehouse-etl-0.9.1.2 lib/etl/execution/record.rb
jayzes-activewarehouse-etl-0.9.1.1 lib/etl/execution/record.rb
jayzes-activewarehouse-etl-0.9.1.2 lib/etl/execution/record.rb
activewarehouse-etl-0.8.2 lib/etl/execution/record.rb
activewarehouse-etl-0.8.4 lib/etl/execution/record.rb
activewarehouse-etl-0.8.3 lib/etl/execution/record.rb
activewarehouse-etl-0.9.0 lib/etl/execution/record.rb
activewarehouse-etl-0.9.1 lib/etl/execution/record.rb