Player
NAME
WebService::FootballData::Team::Player - Class representing a football player
SYNOPSIS
use WebService::FootballData::Team::Player;
my $player = WebService::FootballData::Team::Player.new(
name => 'Kelechi Iheanacho',
number => 72,
birth_date => Date.new('1996-10-03')
);
say $player.age;
DESCRIPTION
Class for creating objects that provide functionality for accessing player data.
players method of WebService::FootballData::Team makes use of player objects.
ATTRIBUTES
name
Player's name, of type Str.
position
Player's position, of type Str.
number
Player's number, of type Int.
nationality
Player's nationality, of type Str.
birth_date
Player's birth date, of type Date.
contract_date
Date of when player's contract expires, of type Date.
market_value
Player's market value, of type Str.
METHODS
age
$player.age;
Returns player's age, of type Int.
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/>.