Class: Zoopla
- Inherits:
-
Object
- Object
- Zoopla
- 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
-
#area_value_graphs ⇒ AreaValueGraphs
Delegates to the AreaValueGraphs class.
-
#initialize(key) ⇒ Zoopla
constructor
A new instance of Zoopla.
-
#property_rich_list ⇒ PropertyRichList
(also: #rich_list)
Delegates to the PropertyRichList class.
-
#rentals ⇒ Rentals
Delegates to the Rentals class.
-
#sales ⇒ Sales
Delegates to the Sales class.
-
#zed_index ⇒ ZedIndex
Delegates to the ZedIndex class.
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_graphs ⇒ AreaValueGraphs
Delegates to the AreaValueGraphs class
40 41 42 |
# File 'lib/zoopla.rb', line 40 def area_value_graphs AreaValueGraphs.new(@api_key) end |
#property_rich_list ⇒ PropertyRichList Also known as: rich_list
Delegates to the PropertyRichList class
46 47 48 |
# File 'lib/zoopla.rb', line 46 def property_rich_list PropertyRichList.new(@api_key) end |
#rentals ⇒ Rentals
Delegates to the Rentals class
22 23 24 |
# File 'lib/zoopla.rb', line 22 def rentals Rentals.new(@api_key) end |