mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-05-31 00:00:37 -04:00
Also convert arrays to object ids
This commit is contained in:
parent
e9dbb72b03
commit
243ff69086
@ -25,6 +25,8 @@ module Stripe
|
||||
res = {}
|
||||
h.each { |k, v| res[k] = objects_to_ids(v) }
|
||||
res
|
||||
when Array
|
||||
h.map { |v| objects_to_ids(v) }
|
||||
else
|
||||
h
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user