Exception: Phishin::Client::UnsuccessfulResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- Phishin::Client::UnsuccessfulResponseError
- Defined in:
- lib/phishin/client/errors.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, message) ⇒ UnsuccessfulResponseError
constructor
A new instance of UnsuccessfulResponseError.
Constructor Details
#initialize(url, message) ⇒ UnsuccessfulResponseError
24 25 26 27 |
# File 'lib/phishin/client/errors.rb', line 24 def initialize(url, ) @url = url super("phish.in api response body has success=false. message='#{}'") end |
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
22 23 24 |
# File 'lib/phishin/client/errors.rb', line 22 def url @url end |