++ed by:

1 non-PAUSE user.

Kieren Diment

NAME

WebService::Braintree::ResourceCollection

PURPOSE

This class provides a way of iterating over a collection of resources. It will lazily retrieve the objects from Braintree.

This class will only be created as part of a response or error response.

METHODS

is_success

This returns true if the request was successful, otherwise false.

first

This returns the first object in this collection.

If there is nothing in the collection, this returns undef.

is_empty

This returns true if the collection has anything in it, otherwise false.

maximum_size

This returns the number of elements in this collection.

each($block)

This takes a subroutine and executes that subroutine for each element in this collection.