lib/chronicle/etl/transformers/null_transformer.rb in chronicle-etl-0.5.5 vs lib/chronicle/etl/transformers/null_transformer.rb in chronicle-etl-0.6.1

- old
+ new

@@ -1,18 +1,16 @@ +# frozen_string_literal: true + module Chronicle module ETL class NullTransformer < Chronicle::ETL::Transformer register_connector do |r| - r.identifier = 'null' + r.identifier = :null r.description = 'in no way' end - def transform - Chronicle::ETL::Models::Raw.new(@extraction.data) + def transform(record) + yield record.data end - - def timestamp; end - - def id; end end end end