Don't require opts param for convert_to_stripe_object.

This commit is contained in:
Corey Farwell 2017-04-24 18:40:03 -04:00 committed by GitHub
parent ed15772fd6
commit f057ee1893

View File

@ -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) }