Sha256: ff6cd4cda3301371633844fbfc1fe2390b35447b5eb9477225c4db977ae231f3

Contents?: true

Size: 605 Bytes

Versions: 12

Compression:

Stored size: 605 Bytes

Contents

require_relative '../all_jobs_shared'

class TruthyJob
  include AllJobsShared

  define_source :source_data, Remi::DataSource::DataFrame,
    fields: {
      :truthy => {}
    }
  define_target :target_data, Remi::DataTarget::DataFrame

  define_transform :main, sources: :source_data, targets: :target_data 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

12 entries across 12 versions & 1 rubygems

Version Path
remi-0.2.42 jobs/transforms/truthy_job.rb
remi-0.2.41 jobs/transforms/truthy_job.rb
remi-0.2.40 jobs/transforms/truthy_job.rb
remi-0.2.39 jobs/transforms/truthy_job.rb
remi-0.2.38 jobs/transforms/truthy_job.rb
remi-0.2.37 jobs/transforms/truthy_job.rb
remi-0.2.36 jobs/transforms/truthy_job.rb
remi-0.2.35 jobs/transforms/truthy_job.rb
remi-0.2.34 jobs/transforms/truthy_job.rb
remi-0.2.33 jobs/transforms/truthy_job.rb
remi-0.2.32 jobs/transforms/truthy_job.rb
remi-0.2.31 jobs/transforms/truthy_job.rb