Class: Parklife::Responder::Unknown

Inherits:
Base
  • Object
show all
Defined in:
lib/parklife/responder/unknown.rb

Instance Attribute Summary

Attributes inherited from Base

#crawler

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Parklife::Responder::Base

Instance Method Details

#call(route, response) ⇒ Object

Raises:



7
8
9
# File 'lib/parklife/responder/unknown.rb', line 7

def call(route, response)
  raise HTTPError.new(response.status, route.path)
end