Sha256: 90c5a13ab012b4fa8dab3cd1948aa96bf08a6af9ef1fd57ccaa1ed43c9654ce4

Contents?: true

Size: 476 Bytes

Versions: 35

Compression:

Stored size: 476 Bytes

Contents

require "hashie"

module Ddr::Index
  class SolrCSVOptions < Hashie::Trash

    property "csv.header",       from: :header,     default: false
    property "csv.separator",    from: :col_sep,    default: ","
    property "csv.encapsulator", from: :quote_char, default: '"'
    property "csv.mv.separator", from: :mv_sep,     default: ","
    property :wt,                default: "csv"
    property :rows

    def params
      to_h.reject { |k, v| v.nil? }
    end

  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
ddr-models-2.4.7 lib/ddr/index/solr_csv_options.rb
ddr-models-2.4.6 lib/ddr/index/solr_csv_options.rb
ddr-models-2.4.5 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.beta.10 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.beta.9 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.beta.8 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.beta.7 lib/ddr/index/solr_csv_options.rb
ddr-models-2.4.4 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.beta.6 lib/ddr/index/solr_csv_options.rb
ddr-models-2.4.3 lib/ddr/index/solr_csv_options.rb
ddr-models-2.4.2 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.beta.4 lib/ddr/index/solr_csv_options.rb
ddr-models-2.4.1 lib/ddr/index/solr_csv_options.rb
ddr-models-2.4.0 lib/ddr/index/solr_csv_options.rb
ddr-models-2.4.0.rc6 lib/ddr/index/solr_csv_options.rb