Sha256: 095d18ed107851c6779d27c587aacd246eda30259251485f5ffd57b91a3b469f
Contents?: true
Size: 442 Bytes
Versions: 32
Compression:
Stored size: 442 Bytes
Contents
require "savon" module Savon class HTTPError < Error def self.present?(http) http.error? end def initialize(http) @http = http end attr_reader :http def to_s message = "HTTP error (#{@http.code})" message << ": #{@http.body}" unless @http.body.empty? message end def to_hash { :code => @http.code, :headers => @http.headers, :body => @http.body } end end end
Version data entries
32 entries across 32 versions & 4 rubygems