Class: Chronicle::ETL::MergeMetaTransformer
- Inherits:
-
Transformer
- Object
- Transformer
- Chronicle::ETL::MergeMetaTransformer
- Defined in:
- lib/chronicle/etl/transformers/merge_meta_transformer.rb
Instance Attribute Summary
Attributes inherited from Transformer
Attributes included from Registry::SelfRegistering
Instance Method Summary collapse
Methods inherited from Transformer
#call, #call_finish, #finish, #initialize
Methods included from Registry::SelfRegistering
Methods included from Configurable
Constructor Details
This class inherits a constructor from Chronicle::ETL::Transformer
Instance Method Details
#transform(record) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/chronicle/etl/transformers/merge_meta_transformer.rb', line 11 def transform(record) record.data unless record.extraction&. record.data[:_meta] = record.extraction. record.data end |