Module CouchRest
In: lib/couchrest.rb
lib/couchrest/support/inheritable_attributes.rb
lib/couchrest/helper/upgrade.rb
lib/couchrest/helper/streamer.rb
lib/couchrest/helper/attachments.rb
lib/couchrest/helper/pager.rb
lib/couchrest/rest_api.rb
lib/couchrest/attributes.rb
lib/couchrest/middlewares/logger.rb
lib/couchrest/server.rb
lib/couchrest/database.rb
lib/couchrest/design.rb
lib/couchrest/commands/generate.rb
lib/couchrest/commands/push.rb
lib/couchrest/document.rb

CouchRest::Document

Provides basic functions for controlling documents returned from the CouchDB database and provides methods to act as a wrapper around a Hash of @_attributes.

The idea is to provide the basic functionality of a Hash, just enought to support the needs of CouchRest, but not inherit all of the functionality found in a basic Hash.

A Response is similar to Rails’ HashWithIndifferentAccess as all requests will convert the keys into Symbols and be stored in the master hash as such.

Methods

database   database!   new   paramify_url   parse   proxy  

Classes and Modules

Module CouchRest::Attachments
Module CouchRest::Attributes
Module CouchRest::Commands
Module CouchRest::InheritableAttributes
Module CouchRest::RestAPI
Class CouchRest::Database
Class CouchRest::Design
Class CouchRest::Document
Class CouchRest::ExtendedDocument
Class CouchRest::Logger
Class CouchRest::Pager
Class CouchRest::Server
Class CouchRest::Streamer
Class CouchRest::Upgrade

Public Class methods

ensure that a database exists creates it if it isn‘t already there returns it after it‘s been created

todo, make this parse the url and instantiate a Server or Database instance depending on the specificity.

set proxy to use

[Validate]