Exception: Zoopla::DisambiguationError

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

Overview

Raised when an ambiguous area name is given, e.g. Whitechapel (is it in London? Devon? Lancashire?)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(areas) ⇒ DisambiguationError

Returns a new instance of DisambiguationError.


36
37
38
# File 'lib/zoopla/errors.rb', line 36

def initialize(areas)
  @areas = areas
end

Instance Attribute Details

#areasObject (readonly)

Array of possible locations (Strings)


34
35
36
# File 'lib/zoopla/errors.rb', line 34

def areas
  @areas
end