class Scorpio::HTTPError
Attributes
response_object[RW]
ur[RW]
Public Class Methods
status(status = nil)
click to toggle source
for HTTPError
subclasses representing a single status, sets and/or returns the represented status.
@param status [Integer] if specified, sets the HTTP status the class represents @return [Integer] the HTTP status the class represents
# File lib/scorpio.rb, line 34 def self.status(status = nil) if status @status = status Scorpio.error_classes_by_status[status] = self else @status end end