Head2Head

NAME

WebService::FootballData::Fixtures::Head2Head - Class for managing head to head data

SYNOPSIS


use WebService::FootballData::Fixtures::Head2Head;

my $head2head = WebService::FootballData::Fixtures::Head2Head.new(
    home_team_wins => 3,
    away_team_wins => 0
);

DESCRIPTION

Class for creating objects that provide functionality for accessing head to head data.

ATTRIBUTES

timeframe_start

Starting date of timeframe, of type Date.

timeframe_end

Ending date of timeframe, of type Date.

home_team_wins

Home team wins, of type Int.

away_team_wins

Away team wins, of type Int.

draws

Draws, of type Int.

home_team_last_win_home

Last fixture home team won at home, instance of WebService::FootballData::Fixtures::Fixture.

home_team_last_win

Last fixture home team won, instance of WebService::FootballData::Fixtures::Fixture.

away_team_last_win_away

Last fixture away team won away, instance of WebService::FootballData::Fixtures::Fixture.

away_team_last_win

Last fixture away team won, instance of WebService::FootballData::Fixtures::Fixture.

fixtures

Fixtures between the 2 teams, Array of WebService::FootballData::Fixtures::Fixture instances.

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.