Class: Riddl::Utils::Downloadify

Inherits:
Implementation show all
Defined in:
lib/ruby/riddl/utils/downloadify.rb

Instance Method Summary collapse

Methods inherited from Implementation

#headers, #initialize, #status

Constructor Details

This class inherits a constructor from Riddl::Implementation

Instance Method Details

#responseObject



7
8
9
10
11
# File 'lib/ruby/riddl/utils/downloadify.rb', line 7

def response
  mimetype = @p.find{|e|e.name == 'mimetype'}.value
  content = @p.find{|e|e.name == 'content'}.value
  Riddl::Parameter::Complex.new("content",mimetype,content,@r.last)
end