NAME
WebService::Nestoria::Search::Result - Container object for a WebService::Nestoria::Search result.
Contains all the information received about a single property listing and many functions for outputting the information.
This package is used by WebService::Nestoria::Search and a Result object should never need to be explicitly created by the user.
Functions
get_*
The get_* functions each return one attribute about the listing. They are as follows:
get_latitude
get_longitude
get_listing_type
get_property_type
get_datasource_name
get_lister_name
get_lister_url
get_price
get_price_type
get_price_currency
get_price_formatted
get_price_high
get_price_low
get_title
get_summary
get_bedroom_number
get_bathroom_number
get_room_number
get_size
get_size_unit
get_land_size
get_land_size_unit
get_thumb_url
get_thumb_height
get_thumb_width
get_img_url
get_img_height
get_img_width
get_keywords
get_guid
get_commission
get_construction_year
get_auction_date
get_updated_in_days
get_updated_in_days_formatted
get_hashref
Returns a hashref containing the details of the listing with keys exactly as the list above. For example:
use Data::Dumper;
print Dumper $result->get_hashref ;
$VAR1= {
'title' => 'Thornbury Road, Brixton',
'price' => '459950',
'price_type' => 'fixed',
'price_currency' => 'GBP',
'price_formatted' => '459,950 GBP',
'bedroom_number' => '4',
'bathroom_number' => '2',
'longitude' => '-0.129012',
'latitude' => '51.4508',
'property_type' => 'house',
'listing_type' => 'buy',
'keywords' => 'Garden, Loft, Cellar, Reception',
'summary' => 'In need of complete refurbishment is this four bedroom family home located...',
'lister_url' => 'http://rd.nestoria.co.uk/rd?l=api-sr-title-1&url=...',
...
};
Copyright
Copyright (C) 2009 Lokku Ltd.
Author
Alex Balhatchet (kaoru at slackwise dot net), Yoav Felberbaum (perl at mrdini dot com), Alistair Francis (cpan at alizta dot com).