NAME
Business::GoCardless::Paginator
DESCRIPTION
A class for pagination through gocardless data returned as a list.
ATTRIBUTES
client
objects
class
info
links
page_loader
page_loader is an optional coderef that takes a URL and returns an arrayref of objects, a hashref of links, and a hashref of info for that page. It is used for the v2 API, which has cursor based pagination rather than Link headers.
PAGER METHODS
next
previous
first
last
Return the objects from the next/previous/first/last page:
my @objects = $Paginator->next;
AUTHOR
Lee Johnson - lee@payprop.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. If you would like to contribute documentation, features, bug fixes, or anything else then please raise an issue / pull request:
https://github.com/payprop/business-gocardless