Sha256: 619962481a974b603a33e3fc9c3c78bb482fc3096f4ad7ce3a43cd63c2bb5383

Contents?: true

Size: 587 Bytes

Versions: 17

Compression:

Stored size: 587 Bytes

Contents

# frozen_string_literal: true

module Karafka
  module Web
    module Ui
      module Controllers
        module Responses
          # Response that tells Roda to ship the content under a file name
          class File
            attr_reader :content, :file_name

            # @param content [String] data we want to send
            # @param file_name [String] name under which we want to send it
            def initialize(content, file_name)
              @content = content
              @file_name = file_name
            end
          end
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
karafka-web-0.10.4 lib/karafka/web/ui/controllers/responses/file.rb
karafka-web-0.10.3 lib/karafka/web/ui/controllers/responses/file.rb
karafka-web-0.10.2 lib/karafka/web/ui/controllers/responses/file.rb
karafka-web-0.10.1 lib/karafka/web/ui/controllers/responses/file.rb
karafka-web-0.10.0 lib/karafka/web/ui/controllers/responses/file.rb
karafka-web-0.10.0.rc2 lib/karafka/web/ui/controllers/responses/file.rb
karafka-web-0.10.0.rc1 lib/karafka/web/ui/controllers/responses/file.rb
karafka-web-0.10.0.beta1 lib/karafka/web/ui/controllers/responses/file.rb
karafka-web-0.9.1 lib/karafka/web/ui/controllers/responses/file.rb
karafka-web-0.9.0 lib/karafka/web/ui/controllers/responses/file.rb
karafka-web-0.9.0.rc3 lib/karafka/web/ui/controllers/responses/file.rb
karafka-web-0.9.0.rc2 lib/karafka/web/ui/controllers/responses/file.rb
karafka-web-0.9.0.rc1 lib/karafka/web/ui/controllers/responses/file.rb
karafka-web-0.8.2 lib/karafka/web/ui/controllers/responses/file.rb
karafka-web-0.8.1 lib/karafka/web/ui/controllers/responses/file.rb
karafka-web-0.8.0 lib/karafka/web/ui/controllers/responses/file.rb
karafka-web-0.8.0.rc1 lib/karafka/web/ui/controllers/responses/file.rb