Class: Zoopla::Rentals
- Includes:
- Listing
- Defined in:
- lib/zoopla/listings/rentals.rb
Overview
Searches for rental listings
Instance Method Summary collapse
-
#furnished(value) ⇒ Rentals
Specify whether or not the apartment is “furnished”, “unfurnished” or “part-furnished”.
-
#include_rented ⇒ Rentals
Include property listings that are already rented in the results.
Methods included from Listing
#beds, #each, #flats, #houses, #in, #keywords, #listing_id, #maximum_beds, #maximum_price, #minimum_beds, #minimum_price, #order_by, #ordering, #price, #property_type, #within
Methods inherited from API
#actual_location, #initialize, #reset!
Constructor Details
This class inherits a constructor from Zoopla::API
Instance Method Details
#furnished(value) ⇒ Rentals
Specify whether or not the apartment is “furnished”, “unfurnished” or “part-furnished”.
17 18 19 20 21 |
# File 'lib/zoopla/listings/rentals.rb', line 17 def furnished(value) ensure_valid_parameter('furnished', value, %w(furnished unfurnished part-furnished)) @request[:furnished] = value.to_s self end |
#include_rented ⇒ Rentals
Include property listings that are already rented in the results
10 11 12 13 |
# File 'lib/zoopla/listings/rentals.rb', line 10 def include_rented @request[:include_rented] = '1' self end |