Sha256: a57d2619fba22421d900b49191e208e9b1c0ee163d494d21b0a4b9acc8f86322

Contents?: true

Size: 365 Bytes

Versions: 20

Compression:

Stored size: 365 Bytes

Contents

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
stripe-1.10.0 lib/stripe/json.rb
stripe-1.9.9 lib/stripe/json.rb
stripe-1.8.8 lib/stripe/json.rb
stripe-1.8.7 lib/stripe/json.rb
stripe-1.8.6 lib/stripe/json.rb
stripe-1.8.5 lib/stripe/json.rb
stripe-1.8.4 lib/stripe/json.rb
stripe-1.8.3 lib/stripe/json.rb
stripe-1.8.2 lib/stripe/json.rb
stripe-1.8.1 lib/stripe/json.rb
stripe-1.7.11 lib/stripe/json.rb
stripe-1.7.10 lib/stripe/json.rb
stripe-1.7.9 lib/stripe/json.rb
stripe-1.7.8 lib/stripe/json.rb
stripe-1.7.7 lib/stripe/json.rb
stripe-1.7.6 lib/stripe/json.rb
stripe-1.7.4 lib/stripe/json.rb
stripe-1.7.3 lib/stripe/json.rb
stripe-1.7.2 lib/stripe/json.rb
stripe-1.7.1 lib/stripe/json.rb