Class: Gister::Fetcher::MemoryStore
- Inherits:
-
Object
- Object
- Gister::Fetcher::MemoryStore
- Defined in:
- lib/gister/fetcher.rb
Instance Method Summary collapse
- #get(k) ⇒ Object
-
#initialize ⇒ MemoryStore
constructor
A new instance of MemoryStore.
- #set(k, v) ⇒ Object
Constructor Details
#initialize ⇒ MemoryStore
Returns a new instance of MemoryStore.
6 |
# File 'lib/gister/fetcher.rb', line 6 def initialize; @store = Hash.new; end |
Instance Method Details
#get(k) ⇒ Object
8 |
# File 'lib/gister/fetcher.rb', line 8 def get(k); @store[k]; end |
#set(k, v) ⇒ Object
7 |
# File 'lib/gister/fetcher.rb', line 7 def set(k,v); @store[k]=v; end |