Module CouchRest::Mixins::DocumentQueries::ClassMethods
In: lib/couchrest/mixins/document_queries.rb

Methods

all   first   get  

Public Instance methods

Load all documents that have the "couchrest-type" field equal to the name of the current class. Take the standard set of CouchRest::Database#view options.

Load the first document that have the "couchrest-type" field equal to the name of the current class.

Returns

Object:The first object instance available

or

Nil:if no instances available

Parameters

opts<Hash>:: View options, see CouchRest::Database#view options for more info.

Load a document from the database by id

[Validate]