Class: Zemanta::Fetcher::Cache
- Inherits:
-
Object
- Object
- Zemanta::Fetcher::Cache
- Defined in:
- lib/zemanta/fetcher/cache.rb,
lib/zemanta/fetcher/cache/key.rb,
lib/zemanta/fetcher/cache/response.rb,
lib/zemanta/fetcher/cache/null_response.rb
Defined Under Namespace
Classes: Key, NullResponse, Response
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize(opts = {}) ⇒ Cache
constructor
A new instance of Cache.
- #save(response) ⇒ Object
Constructor Details
Instance Method Details
#fetch ⇒ Object
8 9 10 |
# File 'lib/zemanta/fetcher/cache.rb', line 8 def fetch fetch_from_storage(@key).to_s end |