stripe/stripe-ruby — pull request #163 by afn (2014-09-18 17:27:03+00:00)
Title: Adding inherent pagination support to ListObject

The caller shouldn't have to know about the fact that the API is paginated. Instead, iterating over a StripeList should automatically fetch data lazily.

This is a first stab at addressing the issue. The following now works as expected:

```ruby
Stripe::Customer.all.each do |cus|
# do something with cus
break if some_condition
end

count = Stripe::Customer.all.count
customers = Stripe::Customer.all.to_a
```

but calling `Stripe::Customer.all.data`, will still return only the first page of results. I'm happy to flesh out the functionality, but I'd love to get some feedback first.

Thanks!
Tony