Usergrid::Collection - a Usergrid collection
Encapsulates Usergrid collections and provides methods for iterating and paging through them.
A hash reference with the collection data
The URI from which this collection was retrieved
When set, the collection will automatically move to the next page when iterating through the collection
Returns true if there's another entity available during iteration.
Returns the next available Usergrid::Entity. If there's no entity available to return, it returns a FALSE. If the auto_page attribute it set, the next page is automatically fetched and the next entity is returned.
Returns the count of the items in the collection.
Rewinds the iterator back to the beginning.
Returns the first entity in the collection. This is only applicable for the current page of the collection.
Returns the last entity in the collection. This is only applicable for the current page of the collection.
Fetches the next page in the collection. Returns false when there are no more reults.
Fetches the previous page in the collection. Returns false when there are no more reults.
Usergrid::Client, Usergrid::Entity, Usergrid::Request
This software is distributed under the Apache 2 license.
Anuradha Weeraman <anuradha@cpan.org>
To install Usergrid::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Usergrid::Client
CPAN shell
perl -MCPAN -e shell install Usergrid::Client
For more information on module installation, please visit the detailed CPAN module installation guide.