mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-06-05 00:01:07 -04:00
22 lines
365 B
Ruby
22 lines
365 B
Ruby
module Stripe
|
|
module JSON
|
|
if MultiJson.respond_to?(:dump)
|
|
def self.dump(*args)
|
|
MultiJson.dump(*args)
|
|
end
|
|
|
|
def self.load(*args)
|
|
MultiJson.load(*args)
|
|
end
|
|
else
|
|
def self.dump(*args)
|
|
MultiJson.encode(*args)
|
|
end
|
|
|
|
def self.load(*args)
|
|
MultiJson.decode(*args)
|
|
end
|
|
end
|
|
end
|
|
end
|