| 1 | package WWW::Metalgate; | ||
| 2 | |||
| 3 | use warnings; | ||
| 4 | use strict; | ||
| 5 | |||
| 6 | use WWW::Metalgate::Column; | ||
| 7 | use WWW::Metalgate::Year; | ||
| 8 | use WWW::Metalgate::ReviewIndex; | ||
| 9 | |||
| 10 | =head1 NAME | ||
| 11 | |||
| 12 | WWW::Metalgate - parse http://www.metalgate.jp/. | ||
| 13 | |||
| 14 | =head1 VERSION | ||
| 15 | |||
| 16 | Version 0.04 | ||
| 17 | |||
| 18 | =cut | ||
| 19 | |||
| 20 | our $VERSION = '0.04'; | ||
| 21 | |||
| 22 | =head1 SYNOPSIS | ||
| 23 | |||
| 24 | use WWW::Metalgate; | ||
| 25 | |||
| 26 | my @years = WWW::Metalgate->years; | ||
| 27 | my @albums = $years[0]->best_albums; | ||
| 28 | |||
| 29 | =head1 EXPORT | ||
| 30 | |||
| 31 | none. | ||
| 32 | |||
| 33 | =head1 FUNCTIONS | ||
| 34 | |||
| 35 | =head2 years | ||
| 36 | |||
| 37 | my @years = WWW::Metalgate->years; # WWW::Metalgate::Year instances. | ||
| 38 | |||
| 39 | =cut | ||
| 40 | |||
| 41 | sub years { | ||
| 42 | WWW::Metalgate::Column->new->years; | ||
| 43 | } | ||
| 44 | |||
| 45 | =head2 year | ||
| 46 | |||
| 47 | my $year = WWW::Metalgate->year( year => 2000 ); # WWW::Metalgate::Year instance. | ||
| 48 | |||
| 49 | =cut | ||
| 50 | |||
| 51 | sub year { | ||
| 52 | WWW::Metalgate::Year->new( year => $_[1] ); | ||
| 53 | } | ||
| 54 | |||
| 55 | =head2 review_index | ||
| 56 | |||
| 57 | my $review_index = WWW::Metalgate->review_index; # WWW::Metalgate::ReviewIndex instance. | ||
| 58 | |||
| 59 | =cut | ||
| 60 | |||
| 61 | sub review_index { | ||
| 62 | WWW::Metalgate::ReviewIndex->new; | ||
| 63 | } | ||
| 64 | |||
| 65 | =head1 AUTHOR | ||
| 66 | |||
| 67 | Tomohiro Hosaka, C<< <bokutin at cpan.org> >> | ||
| 68 | |||
| 69 | =head1 COPYRIGHT & LICENSE | ||
| 70 | |||
| 71 | Copyright 2008 Tomohiro Hosaka, all rights reserved. | ||
| 72 | |||
| 73 | This program is free software; you can redistribute it and/or modify it | ||
| 74 | under the same terms as Perl itself. | ||
| 75 | |||
| 76 | =cut | ||
| 77 | |||
| 78 | 1; |