Exception: WebFinger::HttpError
- Defined in:
- lib/webfinger/exception.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, message = nil, response = nil) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(status, message = nil, response = nil) ⇒ HttpError
Returns a new instance of HttpError.
6 7 8 9 10 |
# File 'lib/webfinger/exception.rb', line 6 def initialize(status, = nil, response = nil) super @status = status @response = response end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
5 6 7 |
# File 'lib/webfinger/exception.rb', line 5 def response @response end |
#status ⇒ Object
Returns the value of attribute status.
5 6 7 |
# File 'lib/webfinger/exception.rb', line 5 def status @status end |