Row

NAME

WebService::FootballData::League::Table::Row - Class representing a team's table stats

SYNOPSIS


use WebService::FootballData::League::Table::Row;

my $standing = WebService::FootballData::League::Table::Row.new(
    name => 'Leicester City FC',
    position => 1
);

DESCRIPTION

Class for creating objects that provide functionality for accessing team's table stats.

rows method of WebService::FootballData::League::Table makes use of row objects.

ATTRIBUTES

name

Name of the team, of type Str.

crest_url

Crest URL of the team, of type Str.

position

Team's position in table, of type Int.

games_played

Number of games the team has played, of type Int.

goals_for

Number of goals the team has scored, of type Int.

goals_against

Number of goals the team has conceded, of type Int.

goal_difference

Goal difference of the team, of type Int.

wins

Number of the team's wins, of type Int.

draws

Number of the team's draws, of type Int.

losses

Number of the team's losses, of type Int.

points

Points of the team, of type Int.

home

Contains the home stats. An instance of WebService::FootballData::League::Table::Row::Home.

Has the following attributes:

  • goals_for

  • goals_against

  • wins

  • draws

  • losses

away

Contains the away stats. An instance of WebService::FootballData::League::Table::Row::Away.

Has the following attributes:

  • goals_for

  • goals_against

  • wins

  • draws

  • losses

AUTHOR

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

COPYRIGHT AND LICENSE

Copyright Ā© 2016 Siavash Askari Nasr

This file is part of WebService::FootballData.

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

WebService::FootballData 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 Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with WebService::FootballData. 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.