lib/stripe/api_operations/delete.rb in stripe-1.58.0 vs lib/stripe/api_operations/delete.rb in stripe-2.0.0

- old
+ new

@@ -1,11 +1,11 @@ module Stripe module APIOperations module Delete def delete(params={}, opts={}) opts = Util.normalize_opts(opts) - response, opts = request(:delete, resource_url, params, opts) - initialize_from(response, opts) + resp, opts = request(:delete, resource_url, params, opts) + initialize_from(resp.data, opts) end end end end