Exception: Zoopla::UnknownLocationError
- Inherits:
-
StandardError
- Object
- StandardError
- Zoopla::UnknownLocationError
- Defined in:
- lib/zoopla/errors.rb
Overview
Raised when an unknown location is searched for, e.g. Stok
Instance Attribute Summary collapse
-
#suggestion ⇒ Object
readonly
String, a spelling suggestion, may be nil.
Instance Method Summary collapse
-
#initialize(suggestion) ⇒ UnknownLocationError
constructor
A new instance of UnknownLocationError.
Constructor Details
#initialize(suggestion) ⇒ UnknownLocationError
Returns a new instance of UnknownLocationError.
48 49 50 |
# File 'lib/zoopla/errors.rb', line 48 def initialize(suggestion) @suggestion = suggestion end |
Instance Attribute Details
#suggestion ⇒ Object (readonly)
String, a spelling suggestion, may be nil
46 47 48 |
# File 'lib/zoopla/errors.rb', line 46 def suggestion @suggestion end |