class Jellyfish::Found
Attributes
url[R]
Public Class Methods
new(url;)
click to toggle source
# File lib/jellyfish.rb, line 30 def initialize url; @url = url ; end
Public Instance Methods
body()
click to toggle source
Calls superclass method
Jellyfish::Response#body
# File lib/jellyfish.rb, line 33 def body ; super.map{ |b| b.gsub('VAR_URL', url) }; end
headers()
click to toggle source
Calls superclass method
Jellyfish::Response#headers
# File lib/jellyfish.rb, line 32 def headers ; super.merge('Location' => url) ; end
status()
click to toggle source
# File lib/jellyfish.rb, line 31 def status ; 302 ; end