Sha256: 98f2c29713f03e1ce5c2c67115d8442ac322fb33ad1587b18979bbacf6a616fc

Contents?: true

Size: 493 Bytes

Versions: 4

Compression:

Stored size: 493 Bytes

Contents

require_relative '../all_jobs_shared'

class TruthyJob < Remi::Job

  source :source_data do
    fields(
      {
        :truthy => {}
      }
    )
  end

  target :target_data

  transform :main do
    Remi::SourceToTargetMap.apply(source_data.df, target_data.df) do
      map source(:truthy) .target(:allow_nils)
        .transform(Remi::Transform::Truthy.new(allow_nils: true))

      map source(:truthy) .target(:no_nils)
        .transform(Remi::Transform::Truthy.new)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
remi-0.3.3 jobs/transforms/truthy_job.rb
remi-0.3.2 jobs/transforms/truthy_job.rb
remi-0.3.1 jobs/transforms/truthy_job.rb
remi-0.3.0 jobs/transforms/truthy_job.rb