Sha256: 7adc483a7fa6deafbe86e4c3f0584e8ab8970cb28065649ca6787220e2217f7b

Contents?: true

Size: 188 Bytes

Versions: 5

Compression:

Stored size: 188 Bytes

Contents

module Paysio
  class JSON
    class << self
      def decode(text)
        Oj.load(text)
      end

      def encode(json)
        Oj.dump(json, mode: :compat)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
paysio-1.0.8 lib/paysio/json.rb
paysio-1.0.7 lib/paysio/json.rb
paysio-1.0.6 lib/paysio/json.rb
paysio-1.0.5 lib/paysio/json.rb
paysio-1.0.4 lib/paysio/json.rb