| WebService-TVRage documentation | Contained in the WebService-TVRage distribution. |
WebService::TVRage::Episode - Object returned by WebService::TVRage::EpisodeList->getEpisode(), Contains a List of episodes for all seasons
my $episode = $episodeList->getEpisode();
$episode->getAirDate();
This is populated by WebService::TVRage::EpisodeList->getEpisode(), you shouldn't need to edit this, but you might want to look at it with Data::Dumper
$episode->getTitle()
Returns the title of the episode as a string
$episode->getEpisodeNo()
Returns the episode number of which episode it is within the season
$episode->getAirDate()
Returns the date that the episode first aired as string like '2006-10-09'
$episode->getWebLink()
Returns a URL to TVRage's website for the particular episode.
Kyle Brandt, kyle@kbrandt.com http://www.kbrandt.com
| WebService-TVRage documentation | Contained in the WebService-TVRage distribution. |
# #=============================================================================== # FILE: Episode.pm # AUTHOR: Kyle Brandt (mn), kyle@kbrandt.com , http://www.kbrandt.com #=============================================================================== use strict; use warnings; package WebService::TVRage::Episode; use Mouse; has '_episodeHash' => ( is => 'rw' ); sub getTitle { my $self = shift; return $self->_episodeHash()->{title} // ''; } sub getEpisodeNo { my $self = shift; return $self->_episodeHash()->{epnum} // ''; } sub getAirDate { my $self = shift; return $self->_episodeHash()->{airdate} // ''; } sub getWebLink { my $self = shift; return $self->_episodeHash()->{link} // ''; } 1;