Sha256: 4f74f2195e686c6ae8a17e25c0dc1c306c169a7ada2e7f06d1723d5de855957c

Contents?: true

Size: 407 Bytes

Versions: 21

Compression:

Stored size: 407 Bytes

Contents

module Remi
  module FieldSymbolizers
    def self.[](symbolizer)
      symbolizers[symbolizer]
    end

    def self.symbolizers
      @symbolizers ||= {
        standard: CSV::HeaderConverters[:symbol],
        salesforce: lambda { |f|
          f.encode(CSV::ConverterEncoding).strip.gsub(/\s+/, "_").
                                           gsub(/\W+/, "").to_sym
        }
      }
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
remi-0.2.22 lib/remi/field_symbolizers.rb
remi-0.2.21 lib/remi/field_symbolizers.rb
remi-0.2.20 lib/remi/field_symbolizers.rb
remi-0.2.19 lib/remi/field_symbolizers.rb
remi-0.2.18 lib/remi/field_symbolizers.rb
remi-0.2.17 lib/remi/field_symbolizers.rb
remi-0.2.16 lib/remi/field_symbolizers.rb
remi-0.2.15 lib/remi/field_symbolizers.rb
remi-0.2.14 lib/remi/field_symbolizers.rb
remi-0.2.13 lib/remi/field_symbolizers.rb
remi-0.2.12 lib/remi/field_symbolizers.rb
remi-0.2.11 lib/remi/field_symbolizers.rb
remi-0.2.10 lib/remi/field_symbolizers.rb
remi-0.2.9 lib/remi/field_symbolizers.rb
remi-0.2.8 lib/remi/field_symbolizers.rb
remi-0.2.7 lib/remi/field_symbolizers.rb
remi-0.2.6 lib/remi/field_symbolizers.rb
remi-0.2.5 lib/remi/field_symbolizers.rb
remi-0.2.4 lib/remi/field_symbolizers.rb
remi-0.2.3 lib/remi/field_symbolizers.rb