From 0acf314e30ff8ae76c67351330de0372cbc3c3af Mon Sep 17 00:00:00 2001 From: "Ryan T. Hosford" Date: Tue, 5 Jan 2016 22:31:39 -0600 Subject: [PATCH] ListObject extends ApiOperations::Create - Addresses a bit of duplication. --- lib/stripe/list_object.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/stripe/list_object.rb b/lib/stripe/list_object.rb index 8cf1b640..b230c08a 100644 --- a/lib/stripe/list_object.rb +++ b/lib/stripe/list_object.rb @@ -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