Skip to content

Instantly share code, notes, and snippets.

@yas4891
yas4891 / gist:24f023df5688154938dd
Created Feb 18, 2015
Adding #next, #previous, #each for lists to stripe-ruby
View gist:24f023df5688154938dd
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