Sha256: cecfc6427085f396fc8be3712eecd3c12456edfb82cdd9f20de6b2a1e3419d63
Contents?: true
Size: 567 Bytes
Versions: 5
Compression:
Stored size: 567 Bytes
Contents
module SirenClient class RawResponse attr_accessor :response def initialize(http_res) unless http_res.class == HTTParty::Response raise InvalidResponseError, "SirenClient::RawResponse expects a HTTParty::Response instance." end @response = http_res end def parsed_response @response.parsed_response end def body @response.body end def code @response.code end def message @response.message.strip end def headers @response.headers end end end
Version data entries
5 entries across 5 versions & 1 rubygems