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


XML-RSS-FOXSports documentation  | view source Contained in the XML-RSS-FOXSports distribution.

Index


NAME

Top

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

SYNOPSIS

Top

#!/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

Top

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

METHODS

Top

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

Top

Brian Perez <perez@cpan.org>

COPYRIGHT & LICENSE

Top


XML-RSS-FOXSports documentation  | view source Contained in the XML-RSS-FOXSports distribution.