Class | CouchRest::Mixins::Collection::CollectionProxy |
In: |
lib/couchrest/mixins/collection.rb
|
Parent: | Object |
DEFAULT_PAGE | = | 1 |
DEFAULT_PER_PAGE | = | 30 |
respond_to? | -> | proxy_respond_to? |
amount_pages | [RW] |
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.