NAME

XML::RSS::FOXSports::Utils - Utility methods class for XML::RSS::FOXSports.

SYNOPSIS

#!/usr/local/bin/perl

use XML::RSS::FOXSports::Utils;

my $fspu = XML::RSS::FOXSports::Utils->new();

my @ary = $fspu->get_available_feeds; print "$_\n" foreach @ary; print "\n";

@ary = $fspu->get_available_headline_feeds; print "$_\n" foreach @ary; print "\n";

@ary = $fspu->get_available_video_feeds; print "$_\n" foreach @ary; print "\n";

@ary = $fspu->get_available_leagues; print "$_\n" foreach @ary; print "\n";

@ary = $fspu->get_available_teams; print "$_\n" foreach @ary; print "\n";

my $hsh = $fspu->get_available_leagues_teams; print "MLS Teams: \n"; print "$_\n" foreach keys %{ $hsh->{'MLS'} }; print "\n";

my $url = $fspu->get_feed_url('MLB_VIDEO'); print "url\n"; print "\n";

@ary = $fspu->get_feed_urls; print "$_\n" foreach @ary;

DESCRIPTION

XML::RSS::FOXSports::Utils is a class of methods used to describe the available feed interface options provided by XML::RSS::FOXSports.

METHODS

get_available_feeds

Returns a list of all headline and video feed names this package parses

get_available_headline_feeds

Returns a list of headline feed names this package parses

get_available_video_feeds

Returns a list of video feed names this package parses

get_available_leagues

Returns a list of league names that can be passed to the parse_team method

get_available_teams

Returns a list of all team names that can be passed to the parse_team method

get_available_leagues_teams

Returns a hash reference of teams names indexed by league name

get_feed_url($feed_name)

Returns the url of the named feed

get_feed_urls

Returns the urls for headline and video feeds

AUTHOR

Brian Perez <perez@cpan.org>

COPYRIGHT & LICENSE

Copyright (c) Brian Perez 2005. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.