class WebFetch::Storage::Memory
Attributes
storage[R]
Public Instance Methods
clear()
click to toggle source
# File lib/web_fetch/storage/memory.rb, line 12 def clear self.class.storage.clear end
delete(key)
click to toggle source
# File lib/web_fetch/storage/memory.rb, line 24 def delete(key) storage.delete(key) end
fetch(key)
click to toggle source
# File lib/web_fetch/storage/memory.rb, line 20 def fetch(key) storage.fetch(key, nil) end
store(key, obj)
click to toggle source
# File lib/web_fetch/storage/memory.rb, line 16 def store(key, obj) storage[key] = obj end
Private Instance Methods
storage()
click to toggle source
# File lib/web_fetch/storage/memory.rb, line 30 def storage self.class.storage end