| 1 | package Bootylicious::ArticleArchive; | ||||||||||
| 2 | |||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 2 | ▶ | use base 'Mojo::Base'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 2 | ▶ | use Bootylicious::ArticleArchiveYearly; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 2 | ▶ | use Bootylicious::ArticleArchiveMonthly; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 2 | __PACKAGE__->attr('articles'); | |||||||||
| 12 | 2 | __PACKAGE__->attr('year'); | |||||||||
| 13 | 2 | __PACKAGE__->attr('month'); | |||||||||
| 14 | |||||||||||
| 15 | sub new { | ||||||||||
| 16 | 4 | ▶ | my $self = shift->SUPER::new(@_); | ||||||||
|
Subroutine
new: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 17 | |||||||||||
| 18 | 4 | ▶ | if ($self->month) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 19 | 1 | return Bootylicious::ArticleArchiveMonthly->new(@_); | |||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | 3 | return Bootylicious::ArticleArchiveYearly->new(@_); | |||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 2 | 1; | |||||||||