lib/chronicle/etl/transformers/transformer.rb in chronicle-etl-0.2.1 vs lib/chronicle/etl/transformers/transformer.rb in chronicle-etl-0.2.2
- old
+ new
@@ -6,15 +6,16 @@
# Construct a new instance of this transformer. Options are passed in from a Runner
# == Paramters:
# options::
# Options for configuring this Transformer
- def initialize(options = {})
+ def initialize(options = {}, data)
@options = options
+ @data = data
end
# The main entrypoint for transforming a record. Called by a Runner on each extracted record
- def transform data
+ def transform
raise NotImplementedError
end
# 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