Sha256: 6cf314aa97c0b2bf46e79973007da0f9348aea3b7f5d4c91c5586588b118a819

Contents?: true

Size: 520 Bytes

Versions: 4

Compression:

Stored size: 520 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 :Excel, "decidim/exporters/excel"
    autoload :ExportData, "decidim/exporters/export_data"

    # 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)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-core-0.22.0 lib/decidim/exporters.rb
decidim-core-0.21.0 lib/decidim/exporters.rb
decidim-core-0.20.1 lib/decidim/exporters.rb
decidim-core-0.20.0 lib/decidim/exporters.rb