Class: WebCrawler::CachedRequest
- Extended by:
- Forwardable
- Defined in:
- lib/web_crawler/cached_request.rb
Constant Summary
Constants inherited from Request
Instance Attribute Summary
Attributes inherited from Request
Instance Method Summary collapse
-
#initialize(url, options = { }) ⇒ CachedRequest
constructor
A new instance of CachedRequest.
- #process ⇒ Object
Methods inherited from Request
Constructor Details
#initialize(url, options = { }) ⇒ CachedRequest
Returns a new instance of CachedRequest.
6 7 8 9 10 |
# File 'lib/web_crawler/cached_request.rb', line 6 def initialize(url, = { }) super(url) @cache = [:cache] || WebCrawler.config.cache.adapter @ready = true if @cache.exist? url end |