class Flexirest::HTTPException
Attributes
body[RW]
raw_response[RW]
request_url[RW]
result[RW]
status[RW]
Public Class Methods
new(options)
click to toggle source
# File lib/flexirest/request.rb, line 952 def initialize(options) @status = options[:status] @result = options[:result] @request_url = options[:url] @body = options[:raw_response] @method = options[:method] end
Public Instance Methods
message()
click to toggle source
# File lib/flexirest/request.rb, line 961 def message method = @method.try(:upcase) "The #{method} to '#{@request_url}' returned a #{@status} status, which raised a #{self.class.to_s} with a body of: #{@body}" end
to_s()
click to toggle source
# File lib/flexirest/request.rb, line 966 def to_s message end