Sha256: bd30a241321dd356878678fdf35f82cb8f8b77b68708c5261284b40721768e7a

Contents?: true

Size: 537 Bytes

Versions: 18

Compression:

Stored size: 537 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Exporters
    autoload :Exporter, "decidim/exporters/exporter"
    autoload :JSON, "decidim/exporters/json"
    autoload :CSV, "decidim/exporters/csv"
    autoload :ExportData, "decidim/exporters/export_data"
    autoload :Serializer, "decidim/exporters/serializer"

    # Get the exporter class constant from the format as a string.
    #
    # format - The exporter format as a string. i.e "csv"
    def self.find_exporter(format)
      const_get(format.upcase)
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
decidim-core-0.6.8 lib/decidim/exporters.rb
decidim-0.6.8 decidim-core/lib/decidim/exporters.rb
decidim-core-0.6.7 lib/decidim/exporters.rb
decidim-0.6.7 decidim-core/lib/decidim/exporters.rb
decidim-core-0.6.6 lib/decidim/exporters.rb
decidim-0.6.6 decidim-core/lib/decidim/exporters.rb
decidim-core-0.6.5 lib/decidim/exporters.rb
decidim-0.6.5 decidim-core/lib/decidim/exporters.rb
decidim-core-0.6.4 lib/decidim/exporters.rb
decidim-0.6.4 decidim-core/lib/decidim/exporters.rb
decidim-core-0.6.3 lib/decidim/exporters.rb
decidim-0.6.3 decidim-core/lib/decidim/exporters.rb
decidim-core-0.6.2 lib/decidim/exporters.rb
decidim-0.6.2 decidim-core/lib/decidim/exporters.rb
decidim-core-0.6.1 lib/decidim/exporters.rb
decidim-0.6.1 decidim-core/lib/decidim/exporters.rb
decidim-core-0.6.0 lib/decidim/exporters.rb
decidim-0.6.0 decidim-core/lib/decidim/exporters.rb