mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-11-22 00:05:58 -05:00
ListObject extends ApiOperations::Create
- Addresses a bit of duplication.
This commit is contained in:
parent
c78b1b8337
commit
0acf314e30
@ -3,6 +3,7 @@ module Stripe
|
|||||||
include Enumerable
|
include Enumerable
|
||||||
include Stripe::APIOperations::List
|
include Stripe::APIOperations::List
|
||||||
include Stripe::APIOperations::Request
|
include Stripe::APIOperations::Request
|
||||||
|
include Stripe::APIOperations::Create
|
||||||
|
|
||||||
# This accessor allows a `ListObject` to inherit various filters that were
|
# This accessor allows a `ListObject` to inherit various filters that were
|
||||||
# given to a predecessor. This allows for things like consistent limits,
|
# given to a predecessor. This allows for things like consistent limits,
|
||||||
@ -67,11 +68,6 @@ module Stripe
|
|||||||
Util.convert_to_stripe_object(response, opts)
|
Util.convert_to_stripe_object(response, opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
def create(params={}, opts={})
|
|
||||||
response, opts = request(:post, url, params, opts)
|
|
||||||
Util.convert_to_stripe_object(response, opts)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Fetches the next page in the resource list (if there is one).
|
# Fetches the next page in the resource list (if there is one).
|
||||||
#
|
#
|
||||||
# This method will try to respect the limit of the current page. If none
|
# This method will try to respect the limit of the current page. If none
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user