Class: Zoopla::PropertyRichList

Inherits:
API
  • Object
show all
Defined in:
lib/zoopla/property_rich_list.rb

Instance Method Summary collapse

Methods inherited from API

#actual_location, #initialize, #reset!

Constructor Details

This class inherits a constructor from Zoopla::API

Instance Method Details

#in(location) ⇒ PropertyRichList

Defines the search area. All possible params are described at developer.zoopla.com/docs/

Parameters:

  • Location (Hash)

    hash

Returns:



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/zoopla/property_rich_list.rb', line 8

def in(location)
  check_output_type location
  # check_area_type location
  @request.merge! location
  reply = fetch_data(@request)
  result = Hashie::Mash.new
  result.richlist_url = result.url = reply.richlist_url
  result.highest = reply.highest
  result.lowest = reply.lowest
  result
end