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 Stripe::APIOperations::List
|
||||
include Stripe::APIOperations::Request
|
||||
include Stripe::APIOperations::Create
|
||||
|
||||
# This accessor allows a `ListObject` to inherit various filters that were
|
||||
# given to a predecessor. This allows for things like consistent limits,
|
||||
@ -67,11 +68,6 @@ module Stripe
|
||||
Util.convert_to_stripe_object(response, opts)
|
||||
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).
|
||||
#
|
||||
# This method will try to respect the limit of the current page. If none
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user