Exception: WebTagger::WebTaggerError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- WebTagger::WebTaggerError
- Defined in:
- lib/webtagger.rb
Overview
A generic exception to handle api call errors
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(resp) ⇒ WebTaggerError
constructor
A new instance of WebTaggerError.
Constructor Details
#initialize(resp) ⇒ WebTaggerError
Returns a new instance of WebTaggerError.
17 18 19 |
# File 'lib/webtagger.rb', line 17 def initialize(resp) @response = resp end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
16 17 18 |
# File 'lib/webtagger.rb', line 16 def response @response end |