Class: Gister::Fetcher::MemoryStore

Inherits:
Object
  • Object
show all
Defined in:
lib/gister/fetcher.rb

Instance Method Summary collapse

Constructor Details

#initializeMemoryStore

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