Fixture

NAME

WebService::FootballData::Fixtures::Fixture - Class representing a football fixture

SYNOPSIS


use WebService::FootballData::Fixtures::Fixture;

my $fixture = WebService::FootballData::Fixtures::Fixture.new(
    request => WebService::FootballData::Request.new,
    links => {
        self => href => "fixtures/136111",
        soccerseason => href => "soccerseason/136111"
        homeTeam => href => "teams/5",
        awayTeam => href => "teams/11",
    }
);

DESCRIPTION

Class for creating objects that provide functionality for accessing fixture data.

ATTRIBUTES

date

Fixture's date, of type DateTime.

status

Fixture's status, of type Str.

matchday

Fixture's matchday, of type Int.

home_team_name

Fixture's home team name, of type Str.

away_team_name

Fixture's away team name, of type Str.

result

Fixture's result, instance of WebService::FootballData::Fixtures::Fixture::Result.

METHODS

league_id

$fixture.league_id;

Returns fixture's league id, of type Int.

home_team_id

$fixture.home_team_id;

Returns fixture's home team id, of type Int.

away_team_id

$fixture.away_team_id;

Returns fixture's away team id, 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/>.

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.