Class: ActiveSet::TransformProcessor

Inherits:
BaseProcessor show all
Defined in:
lib/active_set/processors/transform_processor.rb,
lib/active_set/processors/transform/csv_adapter.rb

Defined Under Namespace

Classes: CSVAdapter

Instance Method Summary collapse

Methods inherited from BaseProcessor

#adapters, #initialize, queue_adapter

Constructor Details

This class inherits a constructor from ActiveSet::BaseProcessor

Instance Method Details

#processObject



8
9
10
11
12
13
14
# File 'lib/active_set/processors/transform_processor.rb', line 8

def process
  fail "Format #{format} is not currently supported as option for tranform" unless %w[csv].include?(format)

  adapter = adapter_for(format: format)
  output = adapter.new(@set, columns).process
  output[:set]
end