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.12 lib/ddr/index/solr_csv_options.rb
ddr-models-2.4.11 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.rc4 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.rc3 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.rc2 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.rc1 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.beta.22 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.beta.21 lib/ddr/index/solr_csv_options.rb
ddr-models-2.4.10 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.beta.20 lib/ddr/index/solr_csv_options.rb
ddr-models-2.4.9 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.beta.18 lib/ddr/index/solr_csv_options.rb
ddr-models-2.4.8 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.beta.17 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.beta.16 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.beta.15 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.beta.14 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.beta.13 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.beta.12 lib/ddr/index/solr_csv_options.rb
ddr-models-3.0.0.beta.11 lib/ddr/index/solr_csv_options.rb