mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-08-24 00:00:51 -04:00
Don't require opts
param for convert_to_stripe_object
.
This commit is contained in:
parent
ed15772fd6
commit
f057ee1893
@ -74,7 +74,7 @@ module Stripe
|
||||
# * +data+ - Hash of fields and values to be converted into a StripeObject.
|
||||
# * +opts+ - Options for +StripeObject+ like an API key that will be reused
|
||||
# on subsequent API calls.
|
||||
def self.convert_to_stripe_object(data, opts)
|
||||
def self.convert_to_stripe_object(data, opts = {})
|
||||
case data
|
||||
when Array
|
||||
data.map { |i| convert_to_stripe_object(i, opts) }
|
||||
|
Loading…
x
Reference in New Issue
Block a user