Methods

RestClient::ExceptionWithResponse

Base RestClient exception when there’s a response available

Attributes

response[RW]

Public Class Methods

new(response=nil) click to toggle source
# File lib/restclient/exceptions.rb, line 14
def initialize(response=nil)
        @response = response
end

Public Instance Methods

http_code() click to toggle source
# File lib/restclient/exceptions.rb, line 18
def http_code
        @response.code.to_i if @response
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.