Skip to content

Instantly share code, notes, and snippets.

@yas4891
yas4891 / gist:24f023df5688154938dd
Created February 18, 2015 17:55
Adding #next, #previous, #each for lists to stripe-ruby
module Stripe
module APIOperations
module List
module ClassMethods
def all(filters={}, opts={})
opts = Util.normalize_opts(opts)
response, opts = request(:get, url, filters, opts)
Util.convert_to_stripe_object(response, opts)
end