| Module | CouchObject::Persistable::ClassMethods |
| In: |
lib/couch_object/persistable.rb
|
Loads a document from the database
Aliases:
Takes:
class SomeClass
include CouchObject::Persistable
database 'http://localhost:5984'
end
Returns:
Raises:
Loads all document from a given view from the database
Takes:
Example:
AppleTree.get_from_view("foo_view",
{ :db_uri => "http://localhost:5984/mydb",
:update => false, :key => "bar"}) => Array
Returns:
Raises:
Takes, returns and raises the same things as get_by_id
Creates a new object that is forced into smart save mode although the class it is stemming from might not have smart saving enabled.