Module CouchRest::Model::DocumentQueries::ClassMethods
In: lib/couchrest/model/document_queries.rb

Methods

count   find   find!   first   get   get!   last  

Public Instance methods

Wrapper for the master design documents all method to provide a total count of entries.

find(id, db = database)

Alias for get

find!(id, db = database)

Alias for get!

Wrapper for the master design document‘s first method on all view.

Load a document from the database by id No exceptions will be raised if the document isn‘t found

Returns

Object:if the document was found

or Nil::

Parameters

id<String, Integer>:Document ID
db<Database>:optional option to pass a custom database to use

Load a document from the database by id An exception will be raised if the document isn‘t found

Returns

Object:if the document was found

or Exception

Parameters

id<String, Integer>:Document ID
db<Database>:optional option to pass a custom database to use

Wrapper for the master design document‘s last method on all view.

[Validate]