Sha256: a2c8f798eaca6d87070430df620df86986efc836f9212d21aa3671b7c577bbeb

Contents?: true

Size: 349 Bytes

Versions: 2

Compression:

Stored size: 349 Bytes

Contents

require 'multi_json'

module VCR
  class Cassette
    class Serializers
      module JSON
        extend self

        def file_extension
          "json"
        end

        def serialize(hash)
          MultiJson.encode(hash)
        end

        def deserialize(string)
          MultiJson.decode(string)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vcr-2.0.0.rc1 lib/vcr/cassette/serializers/json.rb
vcr-2.0.0.beta2 lib/vcr/cassette/serializers/json.rb