module Stripe::APIOperations::List
Public Instance Methods
list(filters = {}, opts = {})
click to toggle source
# File lib/stripe/api_operations/list.rb, line 6 def list(filters = {}, opts = {}) opts = Util.normalize_opts(opts) resp, opts = execute_resource_request(:get, resource_url, filters, opts) obj = ListObject.construct_from(resp.data, opts) # set filters so that we can fetch the same limit, expansions, and # predicates when accessing the next and previous pages obj.filters = filters.dup obj end