line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::PayPal::PaymentsAdvanced::Role::HasUA; |
2
|
|
|
|
|
|
|
|
3
|
7
|
|
|
7
|
|
6162
|
use Moo::Role; |
|
7
|
|
|
|
|
21
|
|
|
7
|
|
|
|
|
70
|
|
4
|
|
|
|
|
|
|
|
5
|
7
|
|
|
7
|
|
2848
|
use namespace::autoclean; |
|
7
|
|
|
|
|
26
|
|
|
7
|
|
|
|
|
54
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.000027'; |
8
|
|
|
|
|
|
|
|
9
|
7
|
|
|
7
|
|
765
|
use LWP::UserAgent; |
|
7
|
|
|
|
|
34
|
|
|
7
|
|
|
|
|
115
|
|
10
|
7
|
|
|
7
|
|
243
|
use Types::Standard qw( InstanceOf ); |
|
7
|
|
|
|
|
23
|
|
|
7
|
|
|
|
|
121
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
has ua => ( |
13
|
|
|
|
|
|
|
is => 'ro', |
14
|
|
|
|
|
|
|
isa => InstanceOf ['LWP::UserAgent'], |
15
|
|
|
|
|
|
|
default => sub { |
16
|
|
|
|
|
|
|
my $ua = LWP::UserAgent->new; |
17
|
|
|
|
|
|
|
$ua->timeout(60); |
18
|
|
|
|
|
|
|
return $ua; |
19
|
|
|
|
|
|
|
}, |
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |