mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-08 00:02:46 -04:00
For now, only two options are supported: `api_key` and `idempotency_key`. In the future, we'll be adding support for additional headers as needed.
18 lines
424 B
Ruby
18 lines
424 B
Ruby
module Stripe
|
|
module APIOperations
|
|
module List
|
|
module ClassMethods
|
|
def all(filters={}, opts={})
|
|
api_key, headers = Util.parse_opts(opts)
|
|
response, api_key = Stripe.request(:get, url, api_key, filters, headers)
|
|
Util.convert_to_stripe_object(response, api_key)
|
|
end
|
|
end
|
|
|
|
def self.included(base)
|
|
base.extend(ClassMethods)
|
|
end
|
|
end
|
|
end
|
|
end
|