Weather::OpenWeatherMap::Request - Weather lookup request superclass
# Normally generated via Weather::OpenWeatherMap # (when a request is made)
This is the parent class for request objects generated by Weather::OpenWeatherMap.
The "SEE ALSO" section links known subclasses.
The OpenWeatherMap API key attached to this request.
Required:
The location string, used to (lazily) generate the "http_request" and "url" attributes.
Locations can be specified in various ways.
Strings such as 'City, State' or 'City, Country' will be parsed appropriately.
A numeric location is taken to be an OpenWeatherMap city code.
A string in the form of 'lat X, long Y' or 'latitude X, longitude Y' is also accepted.
An (optional) arbitrary scalar attached to the request object at construction time.
The (generated) HTTP::Request object used to request the weather data.
The time() the request object was created.
time()
The (generated) OpenWeatherMap URL.
Factory method; returns a new object belonging to the appropriate subclass:
my $request = Weather::OpenWeatherMap::Request->new_for( Current => api_key => $api_key, location => $location, tag => $tag, );
Weather::OpenWeatherMap::Request::Current
Weather::OpenWeatherMap::Request::Forecast
Weather::OpenWeatherMap::Request::Find
Jon Portnoy <avenj@cobaltirc.org>
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.