Exception: Noticed::ResponseUnsuccessful
- Inherits:
-
StandardError
- Object
- StandardError
- Noticed::ResponseUnsuccessful
- Defined in:
- lib/noticed.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response, url, args) ⇒ ResponseUnsuccessful
constructor
A new instance of ResponseUnsuccessful.
Constructor Details
#initialize(response, url, args) ⇒ ResponseUnsuccessful
Returns a new instance of ResponseUnsuccessful.
48 49 50 51 52 53 54 |
# File 'lib/noticed.rb', line 48 def initialize(response, url, args) @response = response @url = url @args = args super("POST request to #{url} returned #{response.code} response:\n#{response.body.inspect}") end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
46 47 48 |
# File 'lib/noticed.rb', line 46 def response @response end |