line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Object::eBay::Condition; |
2
|
|
|
|
|
|
|
our $VERSION = '0.5.1'; |
3
|
|
|
|
|
|
|
|
4
|
4
|
|
|
4
|
|
31512
|
use Class::Std; { |
|
4
|
|
|
|
|
13813
|
|
|
4
|
|
|
|
|
26
|
|
5
|
4
|
|
|
4
|
|
390
|
use warnings; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
138
|
|
6
|
4
|
|
|
4
|
|
21
|
use strict; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
112
|
|
7
|
4
|
|
|
4
|
|
23
|
use Carp; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
1104
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
my %display_name_for :ATTR( :get ); |
10
|
|
|
|
|
|
|
my %condition_id_for :ATTR( :get ); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub BUILD { |
13
|
2
|
|
|
2
|
0
|
1738
|
my ( $self, $ident, $args_ref ) = @_; |
14
|
|
|
|
|
|
|
|
15
|
2
|
|
|
|
|
5
|
my $condition_id = $args_ref->{id}; |
16
|
2
|
100
|
|
|
|
151
|
croak "Missing ConditionID\n" if not $condition_id; |
17
|
1
|
|
|
|
|
2
|
my $display_name = $args_ref->{name}; |
18
|
1
|
50
|
|
|
|
5
|
croak "Missing ConditionDisplayName\n" if not $display_name; |
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
|
|
4
|
$display_name_for{$ident} = $display_name; |
21
|
1
|
|
|
|
|
5
|
$condition_id_for{$ident} = $condition_id; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
4
|
|
|
4
|
1
|
26
|
sub as_string :STRINGIFY { shift->get_display_name } |
|
4
|
|
|
1
|
|
8
|
|
|
4
|
|
|
|
|
31
|
|
|
1
|
|
|
|
|
143
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
# aliases providing naming similar to other Object::eBay classes |
27
|
0
|
|
|
0
|
1
|
|
sub display_name { $_[0]->get_display_name } |
28
|
4
|
|
|
4
|
1
|
933
|
sub condition_id :NUMERIFY { $_[0]->get_condition_id } |
|
4
|
|
|
1
|
|
8
|
|
|
4
|
|
|
|
|
21
|
|
|
1
|
|
|
|
|
1219
|
|
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |