summaryrefslogtreecommitdiff
path: root/lib/couch_stream.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/couch_stream.rb')
-rw-r--r--lib/couch_stream.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/couch_stream.rb b/lib/couch_stream.rb
index e3f66cc..bed296a 100644
--- a/lib/couch_stream.rb
+++ b/lib/couch_stream.rb
@@ -11,8 +11,10 @@ class CouchStream
yield(hash)
end
end
+
+ protected
- def url_for(path, options)
+ def url_for(path, options = {})
url = @server + @db + '/' + path
url += '?' if options.any?
url += options.map {|k,v| "#{k}=#{v}"}.join('&')