Sha256: 42f73ce807528b2522ea1a49b5fe0a970bc6b0632145e65692deb73e6b4aec57

Contents?: true

Size: 380 Bytes

Versions: 3

Compression:

Stored size: 380 Bytes

Contents

# encoding: utf-8
module BusinessCatalyst
  module CSV

    class Transformer
      attr_accessor :input

      def initialize(input)
        @input = input
      end

      def transform
        raise NotImplementedError, "Transformer subclasses must implement #transform"
      end

      def self.transform(input)
        self.new(input).transform
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
business_catalyst-0.1.2 lib/business_catalyst/csv/transformers/transformer.rb
business_catalyst-0.1.1 lib/business_catalyst/csv/transformers/transformer.rb
business_catalyst-0.1.0 lib/business_catalyst/csv/transformers/transformer.rb