Method: CouchObject::Database#put

Defined in:
lib/couch_object/database.rb

#put(path, payload = "") ⇒ Object

Send a PUT request to the path which is relative to the database path so calling with with “bar” as the path in the “foo_db” database will call host:port/foo_db/bar. The put body is the payload Returns a Response object



72
73
74
75
# File 'lib/couch_object/database.rb', line 72

def put(path, payload="")
  Response.new(@server.
    put("/#{Utils.join_url(@dbname, path)}", payload)).parse
end