Class VCR::HTTPInteraction
In: lib/vcr/structs.rb
Parent: Struct.new(:request, :response, :recorded_at)

Represents a single interaction over HTTP, containing a request and a response.

@attr [Request] request the request @attr [Response] response the response @attr [Time] recorded_at when this HTTP interaction was recorded

Methods

from_hash   hook_aware   new   to_hash  

Classes and Modules

Class VCR::HTTPInteraction::HookAware

Public Class methods

Constructs a new instance from a hash.

@param [Hash] hash the hash to use to construct the instance. @return [HTTPInteraction] the HTTP interaction

Public Instance methods

@return [HookAware] an instance with additional capabilities

 suitable for use in `before_record` and `before_playback` hooks.

Builds a serializable hash from the HTTP interaction data.

@return [Hash] hash that represents this HTTP interaction

 and can be easily serialized.

@see HTTPInteraction.from_hash

[Validate]