Class VCR::HTTPInteraction::HookAware
In: lib/vcr/structs.rb
Parent: DelegateClass(HTTPInteraction)

Decorates an {HTTPInteraction} with additional methods useful for a `before_record` or `before_playback` hook.

Methods

filter!   ignore!   ignored?   new  

Public Class methods

Public Instance methods

Replaces a string in any part of the HTTP interaction (headers, request body, response body, etc) with the given replacement text.

@param [to_s] text the text to replace @param [to_s] replacement_text the text to put in its place

Flags the HTTP interaction so that VCR ignores it. This is useful in a {VCR::Configuration#before_record} or {VCR::Configuration#before_playback} hook so that VCR does not record or play it back. @see ignored?

@return [Boolean] whether or not this HTTP interaction should be ignored. @see ignore!

[Validate]