line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Object::eBay::User; |
2
|
|
|
|
|
|
|
our $VERSION = '0.5.1'; |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
1205
|
use Class::Std; { |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
5
|
1
|
|
|
1
|
|
72
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
6
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
7
|
1
|
|
|
1
|
|
4
|
use base qw( Object::eBay ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
204
|
|
8
|
|
|
|
|
|
|
|
9
|
0
|
|
|
0
|
1
|
|
sub api_call { "GetUser" }; |
10
|
0
|
|
|
0
|
1
|
|
sub response_field { "User" }; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
__PACKAGE__->simple_attributes(qw{ |
13
|
|
|
|
|
|
|
FeedbackScore |
14
|
|
|
|
|
|
|
UserID |
15
|
|
|
|
|
|
|
}); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
__PACKAGE__->complex_attributes({ |
18
|
|
|
|
|
|
|
Email => { |
19
|
|
|
|
|
|
|
undefined_value_ok => 1, |
20
|
|
|
|
|
|
|
convert_value => sub { |
21
|
|
|
|
|
|
|
my $email = shift; |
22
|
|
|
|
|
|
|
return if defined($email) and $email eq 'Invalid Request'; |
23
|
|
|
|
|
|
|
return $email; |
24
|
|
|
|
|
|
|
}, |
25
|
|
|
|
|
|
|
}, |
26
|
|
|
|
|
|
|
FeedbackPrivate => { |
27
|
|
|
|
|
|
|
class => 'Boolean', |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
}); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
# name the boolean method with is_ to be consistent |
32
|
0
|
|
|
0
|
1
|
|
sub is_feedback_private { shift->feedback_private } |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
__END__ |