class Chronicle::ETL::Transformer
Abstract class representing an Transformer
for an ETL
job
Public Class Methods
new(options = {}, data)
click to toggle source
Construct a new instance of this transformer. Options are passed in from a Runner
Paramters:¶ ↑
- options
-
Options for configuring this
Transformer
# File lib/chronicle/etl/transformers/transformer.rb, line 11 def initialize(options = {}, data) @options = options @data = data @record = Chronicle::ETL::Models::Activity.new end
Public Instance Methods
id()
click to toggle source
The domain or provider-specific id of the record this transformer is working on. Used for building a cursor so an extractor doesn't have to start from the beginning of a data source from the beginning.
# File lib/chronicle/etl/transformers/transformer.rb, line 24 def id; end
timestamp()
click to toggle source
The domain or provider-specific timestamp of the record this transformer is working on. Used for building a cursor so an extractor doesn't have to start from the beginning of a data source from the beginning.
# File lib/chronicle/etl/transformers/transformer.rb, line 29 def timestamp; end