Sha256: be1f5f7c632a4605af88d62c930f00be063e0c50593f6360393a16b26053d273
Contents?: true
Size: 634 Bytes
Versions: 6
Compression:
Stored size: 634 Bytes
Contents
# frozen_string_literal: true require_relative './processor_base' require_relative './processor_transform/csv_adapter' class ActiveSet class Processor::Transform < Processor::Base def process fail "Format #{format} is not currently supported as option for tranform" unless %w[csv].include?(format) adapter_for(format: format) .new(@set, columns) .process end private def adapter_for(format:) return CSVAdapter if format == 'csv' end def format @instructions.get(:format).to_s.downcase end def columns @instructions.get(:columns) end end end
Version data entries
6 entries across 6 versions & 1 rubygems