Module VCR::Cassette::Serializers::Compressed
In: lib/vcr/cassette/serializers/compressed.rb

The compressed serializer. This serializer wraps the YAML serializer to write compressed cassettes to disk.

Cassettes containing responses with JSON data often compress at greater than 10:1. The tradeoff is that cassettes will not diff nicely or be easily inspectable or editable.

@see YAML

Methods

Public Instance methods

Deserializes the given compressed cassette data.

@param [String] string the compressed YAML cassette data @return [Hash] the deserialized object

The file extension to use for this serializer.

@return [String] "gz"

Serializes the given hash using YAML and Zlib.

@param [Hash] hash the object to serialize @return [String] the compressed cassette data

[Validate]