Class: Braintree::ResourceCollection


Public Instance Methods
each(&block)

Yields each item

empty?()
first()

Returns the first item in the collection or nil if the collection is empty

maximum_size()

Only the maximum size of a resource collection can be determined since the data on the server can change while fetching blocks of results for iteration. For example, customers can be deleted while iterating, so the number of results iterated over may be less than the maximum_size. In general, this method should be avoided.


© Copyright 2009 Braintree Payment Solutions. All Rights Reserved.