mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-06-01 00:00:30 -04:00
Rename @@opts_to_persist
This commit is contained in:
parent
592e503c85
commit
3cbc60f35c
@ -2,7 +2,7 @@ module Stripe
|
|||||||
module APIOperations
|
module APIOperations
|
||||||
module Request
|
module Request
|
||||||
module ClassMethods
|
module ClassMethods
|
||||||
@@opts_to_persist = Set.new([:api_key, :api_base, :stripe_account, :stripe_version])
|
OPTS_KEYS_TO_PERSIST = Set[:api_key, :api_base, :stripe_account, :stripe_version]
|
||||||
|
|
||||||
def request(method, url, params={}, opts={})
|
def request(method, url, params={}, opts={})
|
||||||
opts = Util.normalize_opts(opts)
|
opts = Util.normalize_opts(opts)
|
||||||
@ -17,7 +17,7 @@ module Stripe
|
|||||||
# Hash#select returns an array before 1.9
|
# Hash#select returns an array before 1.9
|
||||||
opts_to_persist = {}
|
opts_to_persist = {}
|
||||||
opts.each do |k, v|
|
opts.each do |k, v|
|
||||||
if @@opts_to_persist.include?(k)
|
if OPTS_KEYS_TO_PERSIST.include?(k)
|
||||||
opts_to_persist[k] = v
|
opts_to_persist[k] = v
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user