Class CouchRest::Mixins::Collection::CollectionProxy
In: lib/couchrest/mixins/collection.rb
Parent: Object

Methods

===   new   paginate   paginated_each   respond_to?  

Constants

DEFAULT_PAGE = 1
DEFAULT_PER_PAGE = 30

External Aliases

respond_to? -> proxy_respond_to?

Attributes

amount_pages  [RW] 

Public Class methods

Create a new CollectionProxy to represent the specified view. If a container class is specified, the proxy will create an object of the given type for each row that comes back from the view. If no container class is specified, the raw results are returned.

The CollectionProxy provides support for paginating over a collection via the paginate, and paginated_each methods.

Public Instance methods

Explicitly proxy === because the instance method removal above doesn‘t catch it.

See Collection.paginate

See Collection.paginated_each

[Validate]