Exception: Zoopla::UnknownLocationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/zoopla/errors.rb

Overview

Raised when an unknown location is searched for, e.g. Stok

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#suggestionObject (readonly)

String, a spelling suggestion, may be nil



46
47
48
# File 'lib/zoopla/errors.rb', line 46

def suggestion
  @suggestion
end