line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Object::eBay::Attribute; |
2
|
|
|
|
|
|
|
our $VERSION = '0.5.1'; |
3
|
|
|
|
|
|
|
|
4
|
3
|
|
|
3
|
|
1310
|
use Class::Std; { |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
17
|
|
5
|
3
|
|
|
3
|
|
281
|
use warnings; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
85
|
|
6
|
3
|
|
|
3
|
|
17
|
use strict; |
|
3
|
|
|
|
|
39
|
|
|
3
|
|
|
|
|
102
|
|
7
|
|
|
|
|
|
|
use overload |
8
|
3
|
|
|
|
|
20
|
q{""} => 'get_value_literal', |
9
|
|
|
|
|
|
|
q{0+} => 'get_value_id', |
10
|
|
|
|
|
|
|
fallback => 1 |
11
|
3
|
|
|
3
|
|
13
|
; |
|
3
|
|
|
|
|
5
|
|
12
|
3
|
|
|
3
|
|
232
|
use Carp; |
|
3
|
|
|
|
|
11
|
|
|
3
|
|
|
|
|
582
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
my %attribute_id_for :ATTR( :get ); |
15
|
|
|
|
|
|
|
my %value_id_for :ATTR( :get ); |
16
|
|
|
|
|
|
|
my %value_literal_for :ATTR( :get ); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub BUILD { |
19
|
0
|
|
|
0
|
0
|
|
my ( $self, $ident, $args_ref ) = @_; |
20
|
0
|
|
0
|
|
|
|
my $hash = $args_ref->{attribute} || {}; |
21
|
0
|
|
|
|
|
|
$attribute_id_for{$ident} = $hash->{attributeID}; |
22
|
0
|
|
|
|
|
|
$value_id_for{$ident} = $hash->{Value}{ValueID}; |
23
|
0
|
|
|
|
|
|
$value_literal_for{$ident} = $hash->{Value}{ValueLiteral}; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |