Method: Top4R::RESTError#to_s

Defined in:
lib/top4r/core.rb

#to_sObject

Returns string in following format: “HTTP #@code: #@message at #@uri” For example, “HTTP 404: Resource Not Found at /i_am_crap.json”



44
45
46
# File 'lib/top4r/core.rb', line 44

def to_s
  "HTTP #{@code}: #{@message} at #{@uri}, sub_code: #{@sub_code}, sub_msg: #{@sub_msg}"
end