class VCR::ResponseStatus
@attr [String] message the HTTP status message (e.g. “OK” for a status of 200)
@attr [Integer] code the HTTP status code
The response status of an {HTTPInteraction}.
def self.from_hash(hash)
-
(ResponseStatus)
- the response status
Parameters:
-
hash
(Hash
) -- the hash to use to construct the instance.
def self.from_hash(hash) new hash['code'], hash['message'] end
def to_hash
- See: ResponseStatus.from_hash -
Returns:
-
(Hash)
- hash that represents this response status
def to_hash { 'code' => code, 'message' => message } end