lib/httpx/response.rb in httpx-0.0.5 vs lib/httpx/response.rb in httpx-0.1.0

- old
+ new

@@ -214,28 +214,22 @@ end class ErrorResponse include Loggable - attr_reader :error, :retries + attr_reader :error - def initialize(error, retries, options) + def initialize(error, options) @error = error - @retries = retries @options = Options.new(options) log { "#{error.class}: #{error}" } - log { caller.join("\n") } end def status @error.message end def raise_for_status raise @error - end - - def retryable? - @retries.positive? end end end