Exception: PagerJudy::API::HttpError
- Inherits:
-
StandardError
- Object
- StandardError
- PagerJudy::API::HttpError
- Defined in:
- lib/pager_judy/api/errors.rb
Overview
An error from the PagerDuty REST API.
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(request, response) ⇒ HttpError
constructor
A new instance of HttpError.
Constructor Details
#initialize(request, response) ⇒ HttpError
Returns a new instance of HttpError.
8 9 10 11 12 |
# File 'lib/pager_judy/api/errors.rb', line 8 def initialize(request, response) @request = request @response = response super(response.headers["Status"]) end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
14 15 16 |
# File 'lib/pager_judy/api/errors.rb', line 14 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
15 16 17 |
# File 'lib/pager_judy/api/errors.rb', line 15 def response @response end |