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
14:                 def initialize(response=nil)
15:                         @response = response
16:                 end

Public Instance Methods

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.