Object
# File lib/taps/multipart.rb, line 52 def self.create c = Taps::Multipart::Container.new yield c c.generate end
# File lib/taps/multipart.rb, line 32 def initialize(opts={}) @opts = opts end
response is a rest-client response
# File lib/taps/multipart.rb, line 59 def self.parse(response) content = response.to_s env = { 'CONTENT_TYPE' => response.headers[:content_type], 'CONTENT_LENGTH' => content.size, 'rack.input' => StringIO.new(content) } params = Rack::Utils::Multipart.parse_multipart(env) params.symbolize_keys! params end
Generated with the Darkfish Rdoc Generator 2.