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.
40 41 42 |
# File 'lib/scorpio.rb', line 40 def response_object @response_object end |
#ur ⇒ Object
Returns the value of attribute ur.
40 41 42 |
# File 'lib/scorpio.rb', line 40 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.
35 36 37 38 39 |
# File 'lib/scorpio.rb', line 35 def self.status(status = nil) return @status if !status Scorpio.error_classes_by_status[status] = self @status = status end |