Class: Parklife::Responder::Redirect
- Defined in:
- lib/parklife/responder/redirect.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Parklife::Responder::Base
Instance Method Details
#call(route, response) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/parklife/responder/redirect.rb', line 7 def call(route, response) raise HTTPRedirectError.new( response.status, crawler.browser.uri_for(route.path), response.headers['location'] ) end |