Class: Parklife::Responder::NotModified
- Defined in:
- lib/parklife/responder/not_modified.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 |
# File 'lib/parklife/responder/not_modified.rb', line 7 def call(route, response) pathname = crawler.cache&.get(route, response) return unless pathname&.exist? crawler.build.copy(pathname, route, response) crawler.crawl(pathname.read) if route.crawl end |