Sha256: 7ee74e16d0b7db0f59147c403a3d0c60a675966f74102016e9f2c44a55ad382e

Contents?: true

Size: 501 Bytes

Versions: 19

Compression:

Stored size: 501 Bytes

Contents

# frozen_string_literal: true

module Stripe
  module APIOperations
    module List
      def list(filters = {}, opts = {})
        opts = Util.normalize_opts(opts)

        resp, opts = 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
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
stripe-5.23.0 lib/stripe/api_operations/list.rb
stripe-5.22.0 lib/stripe/api_operations/list.rb
stripe-5.21.0 lib/stripe/api_operations/list.rb
stripe-5.20.0 lib/stripe/api_operations/list.rb
stripe-5.19.0 lib/stripe/api_operations/list.rb
stripe-5.18.0 lib/stripe/api_operations/list.rb
stripe-5.17.0 lib/stripe/api_operations/list.rb
stripe-5.16.0 lib/stripe/api_operations/list.rb
stripe-5.15.0 lib/stripe/api_operations/list.rb
stripe-5.14.0 lib/stripe/api_operations/list.rb
stripe-5.13.0 lib/stripe/api_operations/list.rb
stripe-5.12.1 lib/stripe/api_operations/list.rb
stripe-5.12.0 lib/stripe/api_operations/list.rb
stripe-5.11.0 lib/stripe/api_operations/list.rb
stripe-5.10.0 lib/stripe/api_operations/list.rb
stripe-5.9.0 lib/stripe/api_operations/list.rb
stripe-5.8.0 lib/stripe/api_operations/list.rb
stripe-5.7.1 lib/stripe/api_operations/list.rb
stripe-5.7.0 lib/stripe/api_operations/list.rb