Exception: Scorpio::HTTPError
Direct Known Subclasses
Scorpio::HTTPErrors::ClientError, Scorpio::HTTPErrors::ServerError
Instance Attribute Summary collapse
-
#response_object ⇒ Object
Returns the value of attribute response_object.
-
#ur ⇒ Object
Returns the value of attribute ur.
Class Method Summary collapse
-
.status(status = nil) ⇒ Integer
for HTTPError subclasses representing a single status, sets and/or returns the represented status.
Instance Attribute Details
#response_object ⇒ Object
Returns the value of attribute response_object.
41 42 43 |
# File 'lib/scorpio.rb', line 41 def response_object @response_object end |
#ur ⇒ Object
Returns the value of attribute ur.
41 42 43 |
# File 'lib/scorpio.rb', line 41 def ur @ur end |
Class Method Details
.status(status = nil) ⇒ Integer
for HTTPError subclasses representing a single status, sets and/or returns the represented status.
33 34 35 36 37 38 39 40 |
# File 'lib/scorpio.rb', line 33 def self.status(status = nil) if status @status = status Scorpio.error_classes_by_status[status] = self else @status end end |