Weather::YR::Base - Base class for all YR service classes.
This module contains helper functions for all other YR service classes.
This base class contains no default configuration. To set default configuration parameters in your sub class, configure a %CONFIG variable in your class.
%CONFIG
\%args
Constructor. Takes parameters as a HASHREF that will be merged with the default configuration in "%CONFIG".
%args
Sets default package configuration values.
This method will try to fetch the content of the web service.
Creates and returns an user agent instance which can be used to fetch data from the YR web services.
This method should be overridden by a subclass. By default it will return the value of $self->{url}.
$self->{url}
Method for overriding values in the object with values from a HASHREF.
Weather::YR
Knut-Olav, <knut-olav@hoven.ws>
Copyright (C) 2008 by Knut-Olav Hoven
This library is free software; you can redireibute it and/or modify it under the terms as GNU GPL version 2.
To install Weather::YR, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Weather::YR
CPAN shell
perl -MCPAN -e shell install Weather::YR
For more information on module installation, please visit the detailed CPAN module installation guide.