Class: Zoopla

Inherits:
Object
  • Object
show all
Defined in:
lib/zoopla.rb,
lib/zoopla/api.rb,
lib/zoopla/errors.rb,
lib/zoopla/version.rb,
lib/zoopla/zed_index.rb,
lib/zoopla/listings/sales.rb,
lib/zoopla/listings/listing.rb,
lib/zoopla/listings/rentals.rb,
lib/zoopla/area_value_graphs.rb,
lib/zoopla/property_rich_list.rb

Defined Under Namespace

Modules: Listing, Version Classes: API, AreaValueGraphs, BadRequestError, DisambiguationError, ForbiddenError, InsufficientArgumentsError, InternalServerError, InvalidOutputTypeError, InvalidRequestedDataError, MethodNotAllowedError, NotFoundError, PropertyRichList, Rentals, Sales, UnauthorizedRequestError, UnknownLocationError, ZedIndex

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ Zoopla

Returns a new instance of Zoopla.


16
17
18
# File 'lib/zoopla.rb', line 16

def initialize(key)
  @api_key = key
end

Instance Method Details

#area_value_graphsAreaValueGraphs

Delegates to the AreaValueGraphs class

Returns:


40
41
42
# File 'lib/zoopla.rb', line 40

def area_value_graphs
  AreaValueGraphs.new(@api_key)
end

#property_rich_listPropertyRichList Also known as: rich_list

Delegates to the PropertyRichList class

Returns:


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

def property_rich_list
  PropertyRichList.new(@api_key)
end

#rentalsRentals

Delegates to the Rentals class

Returns:


22
23
24
# File 'lib/zoopla.rb', line 22

def rentals
  Rentals.new(@api_key)
end

#salesSales

Delegates to the Sales class

Returns:


28
29
30
# File 'lib/zoopla.rb', line 28

def sales
  Sales.new(@api_key)
end

#zed_indexZedIndex

Delegates to the ZedIndex class

Returns:


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

def zed_index
  ZedIndex.new(@api_key)
end