Sha256: 0b819ab69b2bb0827c9bc358b0a2713a1e9adf2dd382bb612a37725dda648e43
Contents?: true
Size: 441 Bytes
Versions: 4
Compression:
Stored size: 441 Bytes
Contents
require_relative '../all_jobs_shared' class PrefixJob < Remi::Job param(:prefix) { 'prefix' } source :source_data do fields( { :my_field => {} } ) end target :target_data transform :main do Remi::SourceToTargetMap.apply(source_data.df, target_data.df) do map source(:my_field) .target(:prefixed_field) .transform(Remi::Transform::Prefix.new(job.params[:prefix])) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
remi-0.3.3 | jobs/transforms/prefix_job.rb |
remi-0.3.2 | jobs/transforms/prefix_job.rb |
remi-0.3.1 | jobs/transforms/prefix_job.rb |
remi-0.3.0 | jobs/transforms/prefix_job.rb |