Class: Parklife::Responder::NotFound
- Defined in:
- lib/parklife/responder/not_found.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 14 15 16 17 18 |
# File 'lib/parklife/responder/not_found.rb', line 7 def call(route, response) case crawler.config.on_404 when :skip # No-op. when :warn crawler.config.logger.warn( HTTPError.new(response.status, route.path). ) else raise HTTPError.new(response.status, route.path) end end |