Weather::Com::DayPart - class representing daytime or night part of a forecast


Weather-Com documentation  | view source Contained in the Weather-Com distribution.

Index


NAME

Top

Weather::Com::DayPart - class representing daytime or night part of a forecast

SYNOPSIS

Top

  [...]

  my @locations = $weather_finder->find('Heidelberg');

  my $forecast = $locations[0]->forecast();
  my $tomorrow_night = $forecast->day(1)->night();

  print "Forecast for tomorrow night:\n";
  print " - conditions will be ", $tomorrow_night->conditions(), "\n";  
  print " - humidity will be ", $tomorrow_night->humidity(), "\%\n";
  print " - wind speed will be ", $tomorrow_night->wind()->speed(), "km/h\n";  

DESCRIPTION

Top

Via Weather::Com::DayPart objects one can access the daytime or night part of a Weather::Com::DayForecast.

This class will not be updated automatically with each call to one of its methods. You need to call a method of your Weather::Com::Forecast object to get updated objects.

CONSTRUCTOR

Top

You usually would not construct an object of this class yourself. This is implicitely done when you call the day() or night() method of a Weather::Com::DayForecast object.

METHODS

Top

type([$language])

Will return day or night.

This attribute is dynamic language enabled.

conditions([$language])

Will return a textual description of the forecasted conditions.

This attribute is dynamic language enabled.

humidity()

Will return the humidity.

icon()

Will return the icon number of the icon describing the forecasted weather.

precipitation()

Will return the percentage chance of precipitation.

wind()

Will return a Weather::Com::Wind object.

AUTHOR

Top

Thomas Schnuecker, <thomas@schnuecker.de>

COPYRIGHT AND LICENSE

Top


Weather-Com documentation  | view source Contained in the Weather-Com distribution.