WebService::TVRage::Episode - Object returned by WebService::TVRage::EpisodeList->getEpisode(), Contains a List of episodes for all seasons


WebService-TVRage documentation Contained in the WebService-TVRage distribution.

Index


Code Index:

NAME

Top

WebService::TVRage::Episode - Object returned by WebService::TVRage::EpisodeList->getEpisode(), Contains a List of episodes for all seasons

SYNOPSIS

Top

    my $episode = $episodeList->getEpisode();
    $episode->getAirDate();

Methods

Top

_episodeHash

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

getTitle()

    $episode->getTitle()

Returns the title of the episode as a string

getEpisodeNo()

    $episode->getEpisodeNo()

Returns the episode number of which episode it is within the season

getAirDate()

    $episode->getAirDate()

Returns the date that the episode first aired as string like '2006-10-09'

AUTHOR

Top

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;