class GHTorrent::NoopPersister
Persister
adapter that does not store any data.
Public Class Methods
new(settings)
click to toggle source
# File lib/ghtorrent/adapters/noop_persister.rb, line 6 def initialize(settings) end
Public Instance Methods
find(entity, query = {})
click to toggle source
Calls superclass method
GHTorrent::BaseAdapter#find
# File lib/ghtorrent/adapters/noop_persister.rb, line 15 def find(entity, query = {}) super #Nothing to see here [] end
get_id()
click to toggle source
# File lib/ghtorrent/adapters/noop_persister.rb, line 21 def get_id 0 end
store(entity, data = {})
click to toggle source
Calls superclass method
GHTorrent::BaseAdapter#store
# File lib/ghtorrent/adapters/noop_persister.rb, line 9 def store(entity, data = {}) super #Nothing to see here 0 end