Class CouchObject::Server
In: lib/couch_object/server.rb
Parent: Object
Enumerable Document StandardError HasManyAssociationError MissingView CantCompareSize DocumentNotFound BelongsToAssociationError HasOneAssociationError CouchDBError MapProcessError DatabaseSaveFailed NoDatabaseLocationSet Array HasManyRelation Response Database Server View Errors VERSION ClassMethods Persistable Utils CouchObject dot/f_3.png

Methods

delete   get   new   post   put   request  

Attributes

connection  [RW] 
host  [RW] 
port  [RW] 

Public Class methods

Create a new Server object, uri is the full URI of the server, eg. "localhost:5984"

Public Instance methods

Send a DELETE request to path

Send a GET request to path

Send a POST request to path with the body payload of data content_type is the Content-Type header to send along (defaults to application/json)

Send a PUT request to path with the body payload of data content_type is the Content-Type header to send along (defaults to application/json)

send off a req object to the host. req is a Net::Http:request class

(eg Net::Http::Get/Net::Http::Post etc)

[Validate]