| 1 | # $Id: Trivium.pm 7370 2012-04-09 01:17:33Z chris $ | ||||||||||
| 2 | |||||||||||
| 3 | =head1 NAME | ||||||||||
| 4 | |||||||||||
| 5 | WebService::IMDB::Trivium | ||||||||||
| 6 | |||||||||||
| 7 | =head1 DESCRIPTION | ||||||||||
| 8 | |||||||||||
| 9 | WebService::IMDB::Trivium isa L<WebService::IMDB::DateText>. | ||||||||||
| 10 | |||||||||||
| 11 | =cut | ||||||||||
| 12 | |||||||||||
| 13 | package WebService::IMDB::Trivium; | ||||||||||
| 14 | |||||||||||
| 15 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 16 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | |||||||||||
| 18 | 2 | our $VERSION = '0.05'; | |||||||||
| 19 | |||||||||||
| 20 | 2 | ▶ | use base qw(WebService::IMDB::DateText); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 21 | |||||||||||
| 22 | 2 | __PACKAGE__->mk_accessors(qw( | |||||||||
| 23 | spoiler | ||||||||||
| 24 | )); | ||||||||||
| 25 | |||||||||||
| 26 | =head1 METHODS | ||||||||||
| 27 | |||||||||||
| 28 | =head2 spoiler | ||||||||||
| 29 | |||||||||||
| 30 | =cut | ||||||||||
| 31 | |||||||||||
| 32 | 0 | ▶ | sub _new { | ||||||||
|
Subroutine
_new: not called CC=3 SCAR=24.8
| |||||||||||
| 33 | 0 | my $class = shift; | |||||||||
| 34 | 0 | my $ws = shift; | |||||||||
| 35 | 0 | ▶ | my $data = shift or die; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 36 | 0 | my $spoiler = shift; | |||||||||
| 37 | |||||||||||
| 38 | 0 | my $self = WebService::IMDB::DateText->_new($ws, $data); | |||||||||
| 39 | |||||||||||
| 40 | 0 | bless $self, $class; | |||||||||
| 41 | |||||||||||
| 42 | 0 | ▶ | if (defined $spoiler) { $self->spoiler($spoiler); } | ||||||||
|
Branch: 1 branch
| |||||||||||
| 43 | |||||||||||
| 44 | 0 | return $self; | |||||||||
| 45 | |||||||||||
| 46 | } | ||||||||||
| 47 | |||||||||||
| 48 | 2 | 1; | |||||||||