line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::DMM::Item; |
2
|
1
|
|
|
1
|
|
19988
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
29
|
|
3
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
22
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
6
|
use Carp (); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
37
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use Class::Accessor::Lite ( |
8
|
1
|
|
|
|
|
10
|
new => 1, |
9
|
|
|
|
|
|
|
ro => [ qw/service_name floor_name category_name |
10
|
|
|
|
|
|
|
content_id product_id title |
11
|
|
|
|
|
|
|
actors directors authors fighters |
12
|
|
|
|
|
|
|
price price_all list_price deliveries |
13
|
|
|
|
|
|
|
date keywords maker label sample_images |
14
|
|
|
|
|
|
|
jancode isbn stock series/ ], |
15
|
1
|
|
|
1
|
|
948
|
); |
|
1
|
|
|
|
|
1136
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub image { |
18
|
4
|
|
|
4
|
1
|
3336
|
my ($self, $type) = @_; |
19
|
|
|
|
|
|
|
|
20
|
4
|
100
|
100
|
|
|
32
|
unless ($type eq 'list' || $type eq 'small' || $type eq 'large') { |
|
|
|
100
|
|
|
|
|
21
|
1
|
|
|
|
|
156
|
Carp::croak("Invalid type '$type': it should be (list, small, large)"); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
3
|
|
|
|
|
10
|
return $self->{image}->{$type}; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
1
|
|
|
1
|
1
|
420
|
sub url { $_[0]->{URL}; } |
28
|
1
|
|
|
1
|
1
|
448
|
sub url_sp { $_[0]->{URLsp} } |
29
|
1
|
|
|
1
|
1
|
25214
|
sub affiliate_url { $_[0]->{affiliateURL}; } |
30
|
1
|
|
|
1
|
1
|
494
|
sub affiliate_url_sp { $_[0]->{affiliateURLsp} } |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |