Class: ETL::Execution::Record

Inherits:
Base
  • Object
show all
Defined in:
lib/etl/execution/record.rb

Overview

Represents a single record

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.time_spentObject

Returns the value of attribute time_spent.



7
8
9
# File 'lib/etl/execution/record.rb', line 7

def time_spent
  @time_spent
end

Class Method Details

.average_time_spentObject



11
12
13
14
# File 'lib/etl/execution/record.rb', line 11

def average_time_spent
  return 0 if time_spent == 0
  ETL::Engine.rows_read / time_spent
end