Class VCR::ResponseStatus
In: lib/vcr/structs.rb
Parent: Struct.new(:code, :message)

The response status of an {HTTPInteraction}.

@attr [Integer] code the HTTP status code @attr [String] message the HTTP status message (e.g. "OK" for a status of 200)

Methods

from_hash   to_hash  

Public Class methods

Constructs a new instance from a hash.

@param [Hash] hash the hash to use to construct the instance. @return [ResponseStatus] the response status

Public Instance methods

@return [Hash] hash that represents this response status

 and can be easily serialized.

@see ResponseStatus.from_hash

[Validate]