class Bamboozled::HTTPError
Attributes
hint[R]
params[R]
response[R]
Public Class Methods
new(response, params = {}, hint = nil)
click to toggle source
Calls superclass method
# File lib/bamboozled/errors.rb, line 7 def initialize(response, params = {}, hint = nil) @response = response @params = params @hint = hint super(response) end
Public Instance Methods
to_s()
click to toggle source
# File lib/bamboozled/errors.rb, line 14 def to_s "#{self.class} : #{response.code} #{response.body}".tap do |msg| msg << "\n#{hint}" if hint end end