Sha256: 466d67ce7ec6a1d3f2e150a2b4643d22c387c506fa06d9a5f852f486bf68118b

Contents?: true

Size: 388 Bytes

Versions: 9

Compression:

Stored size: 388 Bytes

Contents

module MangoPay
  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

9 entries across 9 versions & 1 rubygems

Version Path
mangopay-3.0.9 lib/mangopay/json.rb
mangopay-3.0.8 lib/mangopay/json.rb
mangopay-3.0.7 lib/mangopay/json.rb
mangopay-3.0.6 lib/mangopay/json.rb
mangopay-3.0.5 lib/mangopay/json.rb
mangopay-3.0.4 lib/mangopay/json.rb
mangopay-3.0.3 lib/mangopay/json.rb
mangopay-3.0.2 lib/mangopay/json.rb
mangopay-3.0.1 lib/mangopay/json.rb