module Couch::BasicRequest::Get
Public Instance Methods
get_attachment_str(db, id, attachment)
click to toggle source
# File lib/couch.rb, line 39 def get_attachment_str(db, id, attachment) uri = URI::encode "/#{db}/#{id}/#{attachment}" get(uri).body end
get_doc(database, id, params={})
click to toggle source
Returns parsed doc from database
# File lib/couch.rb, line 34 def get_doc(database, id, params={}) res = get("/#{database}/#{CGI.escape(id)}#{create_postfix(params)}") JSON.parse(res.body) end