Class: ActiveSet::TransformProcessor
- Inherits:
-
BaseProcessor
- Object
- BaseProcessor
- ActiveSet::TransformProcessor
- 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
#process ⇒ Object
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 |