Module CouchPotato
In: lib/couch_potato.rb
lib/couch_potato/database.rb
lib/couch_potato/persistence.rb
lib/couch_potato/persistence/attachments.rb
lib/couch_potato/persistence/callbacks.rb
lib/couch_potato/persistence/dirty_attributes.rb
lib/couch_potato/persistence/ghost_attributes.rb
lib/couch_potato/persistence/json.rb
lib/couch_potato/persistence/magic_timestamps.rb
lib/couch_potato/persistence/properties.rb
lib/couch_potato/persistence/simple_property.rb
lib/couch_potato/persistence/validation.rb
lib/couch_potato/view/base_view_spec.rb
lib/couch_potato/view/custom_view_spec.rb
lib/couch_potato/view/custom_views.rb
lib/couch_potato/view/model_view_spec.rb
lib/couch_potato/view/properties_view_spec.rb
lib/couch_potato/view/raw_view_spec.rb
lib/couch_potato/view/view_query.rb

Methods

Classes and Modules

Module CouchPotato::Attachments
Module CouchPotato::GhostAttributes
Module CouchPotato::Persistence
Module CouchPotato::View
Class CouchPotato::Database

Constants

Config = Struct.new(:database_name).new

Public Class methods

Returns the underlying CouchRest database object if you want low level access to your CouchDB. You have to set the CouchPotato::Config.database_name before this works.

Returns a database instance which you can then use to create objects and query views. You have to set the CouchPotato::Config.database_name before this works.

[Validate]