Exception: Vocabulary::LookUpError
- Inherits:
-
StandardError
- Object
- StandardError
- Vocabulary::LookUpError
- Defined in:
- lib/vocabulary.rb
Instance Attribute Summary collapse
-
#summary ⇒ Object
Returns the value of attribute summary.
Instance Method Summary collapse
-
#initialize(summary) ⇒ LookUpError
constructor
A new instance of LookUpError.
Constructor Details
#initialize(summary) ⇒ LookUpError
Returns a new instance of LookUpError.
7 8 9 10 |
# File 'lib/vocabulary.rb', line 7 def initialize(summary) super "Error while parsing Dictionary API response, may be you requested non-existent word. Response: #{summary}" @summary = summary end |
Instance Attribute Details
#summary ⇒ Object
Returns the value of attribute summary.
6 7 8 |
# File 'lib/vocabulary.rb', line 6 def summary @summary end |