Sha256: 691f5f2ff231e9887fac23de87a5b0a546b7d209b395668abfb4b2d4d71bca10

Contents?: true

Size: 370 Bytes

Versions: 6

Compression:

Stored size: 370 Bytes

Contents

require 'rack'

module Dox
  module Formatters
    class Multipart
      def initialize(http_env)
        @http_env = http_env
      end

      def format
        JSON.pretty_generate(extracted_multipart)
      end

      private

      def extracted_multipart
        Rack::Multipart.extract_multipart(http_env)
      end

      attr_reader :http_env
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dox-2.4.0 lib/dox/formatters/multipart.rb
dox-2.3.0 lib/dox/formatters/multipart.rb
dox-2.2.0 lib/dox/formatters/multipart.rb
dox-2.1.0 lib/dox/formatters/multipart.rb
dox-2.0.0 lib/dox/formatters/multipart.rb
dox-2.0.0.beta3 lib/dox/formatters/multipart.rb