Football

NAME

App::Football - Contains methods for football program

SYNOPSIS


use App::Football;

# Print football leagues
App::Football.new.leagues;

DESCRIPTION

Class used by football script. It's not intended to be used by users.

ATTRIBUTES

program_name

A class attribute containing the program name.

fd

An instance of WebService::FootballData.

METHODS

team

$f.team: 'bayern';

Takes a team name.

Prints team's data.

Returns the team object.

team_players

$f.team_players: 'bayern';

Takes a team name.

Prints team's data and a list of its players and their data.

team_fixtures

$f.team_fixtures: 'bayern';

Takes:

  • team name

  • Named argument season

  • Named argument timeframe

  • Named argument venue

Prints team's data and a list of its fixtures and their data.

leagues

$f.leagues;

Takes named argument season.

Prints a list of leagues and their data.

league

$f.league: 'pd';

Takes:

  • league name

  • Named argument season

Prints league's data.

Returns the league object.

league_teams

$f.league_teams: 'pd';

Takes:

  • league name

  • Named argument season

Prints league's data and a list of its teams and their data.

league_table

$f.league_table: 'pd';

Takes:

  • league name

  • Named argument season

  • Named argument matchday

Prints league's data and its table.

league_fixtures

$f.league_fixtures: 'pd';

Takes:

  • league name

  • Named argument season

  • Named argument matchday

  • Named argument timeframe

Prints league's data and a list of its fixtures and their data.

all_fixtures

$f.all_fixtures;

Takes:

  • Named argument timeframe

  • Named argument league-code

Prints a list of all fixtures from all leagues and their data.

AUTHOR

Siavash Askari Nasr - http://ciavash.name/

COPYRIGHT AND LICENSE

Copyright Β© 2016 Siavash Askari Nasr

This file is part of App::Football.

App::Football is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

App::Football is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with App::Football. If not, see <http://www.gnu.org/licenses/>.

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite β€” the markup and publishing tools behind this site.