line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WWW::YahooJapan::Baseball::Game; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1701
|
use URI; |
|
1
|
|
|
|
|
4869
|
|
|
1
|
|
|
|
|
35
|
|
4
|
1
|
|
|
1
|
|
557
|
use WWW::YahooJapan::Baseball::Parser; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
12
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
0
|
|
|
0
|
0
|
|
my ($class, %self) = @_; |
8
|
0
|
|
|
|
|
|
for my $required (qw/uri/) { |
9
|
0
|
0
|
|
|
|
|
unless (defined $self{$required}) { |
10
|
0
|
|
|
|
|
|
return undef; |
11
|
|
|
|
|
|
|
} |
12
|
|
|
|
|
|
|
} |
13
|
0
|
|
|
|
|
|
bless \%self, $class; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub player_stats { |
17
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
18
|
0
|
|
|
|
|
|
my $uri = $self->{uri}->clone; |
19
|
0
|
|
|
|
|
|
$uri->path($self->{uri}->path . 'stats'); |
20
|
0
|
|
|
|
|
|
WWW::YahooJapan::Baseball::Parser::parse_game_stats_page(uri => $uri); |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |