diff options
author | Azul <azul@riseup.net> | 2016-06-09 11:10:35 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-06-09 11:14:32 +0200 |
commit | 1af940f49f9ba5507673c2131fcb228b778083fb (patch) | |
tree | 82136c5ceb3d4ed56d5544e5052633f57bc7f0fa /lib/nickserver/couch | |
parent | a89e2ba55399e6bddd9e052cf2064ed0056c958a (diff) |
refactor: remove middleman Couch::FetchKey
Diffstat (limited to 'lib/nickserver/couch')
-rw-r--r-- | lib/nickserver/couch/fetch_key.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/nickserver/couch/fetch_key.rb b/lib/nickserver/couch/fetch_key.rb deleted file mode 100644 index 2013bca..0000000 --- a/lib/nickserver/couch/fetch_key.rb +++ /dev/null @@ -1,25 +0,0 @@ -require 'nickserver/couch_db/source' -require 'nickserver/adapters/em_http' - -module Nickserver; module Couch - class FetchKey - - def initialize(options={}) - @source = Nickserver::CouchDB::Source.new(adapter) - end - - def get(uid, &block) - source.query(uid, &block) - end - - protected - - attr_reader :source - - def adapter - @adapter ||= Nickserver::Adapters::EmHttp.new - end - - - end -end; end |