Sha256: 96cc0104a1b5a35007399a40b93fb8f0a6a76c9aa37bc2d5b6379e5d0af4068a

Contents?: true

Size: 495 Bytes

Versions: 13

Compression:

Stored size: 495 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Exporters
    # Holds the result of an export.
    class ExportData
      attr_reader :extension

      # Initializes an `ExportData` with the RAW data and the extension.
      def initialize(data, extension)
        @data = data
        @extension = extension
      end

      # Gives back the raw data of the export.
      #
      # Returns a String with the result of the export.
      def read
        @data
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
decidim-core-0.5.1 lib/decidim/exporters/export_data.rb
decidim-0.5.1 decidim-core/lib/decidim/exporters/export_data.rb
decidim-core-0.5.0 lib/decidim/exporters/export_data.rb
decidim-0.5.0 decidim-core/lib/decidim/exporters/export_data.rb
decidim-core-0.4.4 lib/decidim/exporters/export_data.rb
decidim-core-0.4.2 lib/decidim/exporters/export_data.rb
decidim-core-0.4.1 lib/decidim/exporters/export_data.rb
decidim-core-0.4.3 lib/decidim/exporters/export_data.rb
decidim-core-0.4.0 lib/decidim/exporters/export_data.rb
decidim-core-0.3.2 lib/decidim/exporters/export_data.rb
decidim-core-0.3.1 lib/decidim/exporters/export_data.rb
decidim-core-0.3.0 lib/decidim/exporters/export_data.rb
decidim-core-0.2.0 lib/decidim/exporters/export_data.rb