Weather::OpenWeatherMap::Result - Weather lookup result superclass
# Normally retrieved via Weather::OpenWeatherMap
This is the parent class for Weather::OpenWeatherMap weather results.
See also:
Weather::OpenWeatherMap::Result::Current
Weather::OpenWeatherMap::Result::Forecast
This is the decoded hash from the attached "json".
Subclasses provide more convenient accessors for retrieving desired information.
The error message received from the OpenWeatherMap backend (or the empty string if there was no error).
See also: "is_success", "response_code"
Returns boolean true if the OpenWeatherMap backend returned a successful response.
See also: "error", "response_code"
The raw JSON this Result was created with.
The response code from OpenWeatherMap.
See also: "is_success", "error"
The original request that was attached to this result.
Factory method; returns a new object belonging to the appropriate subclass:
my $result = Weather::OpenWeatherMap::Result->new_for( Forecast => request => $orig_request, json => $raw_json, );
http://www.openweathermap.org
Weather::OpenWeatherMap
Jon Portnoy <avenj@cobaltirc.org>
Licensed under the same terms as perl.
To install Weather::OpenWeatherMap, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Weather::OpenWeatherMap
CPAN shell
perl -MCPAN -e shell install Weather::OpenWeatherMap
For more information on module installation, please visit the detailed CPAN module installation guide.