diff options
author | Azul <azul@riseup.net> | 2012-09-11 13:02:27 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2012-09-11 13:02:27 +0200 |
commit | c0fc5ac5b5d955b1789a58153952e43bb7052b07 (patch) | |
tree | fd9b3e98cd9c75c09b33c4ee8e8af3996309abb4 /lib/couch_stream.rb | |
parent | c331d70638c35d807128e39a9958cab5ba4eeb25 (diff) |
configuring couchDB the CouchRest way and using that for tracking
Diffstat (limited to 'lib/couch_stream.rb')
-rw-r--r-- | lib/couch_stream.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/couch_stream.rb b/lib/couch_stream.rb index 081688a..ed56db2 100644 --- a/lib/couch_stream.rb +++ b/lib/couch_stream.rb @@ -1,6 +1,6 @@ class CouchStream - def initialize(config) - @config = config + def initialize(database_url) + @database_url = database_url end def get(path, options) @@ -14,7 +14,7 @@ class CouchStream protected def url_for(path, options = {}) - url = [@config.server, @config.database, path].join('/') + url = [@database_url, path].join('/') url += '?' if options.any? url += options.map {|k,v| "#{k}=#{v}"}.join('&') end |