File Coverage

blib/lib/WebService/PayPal/PaymentsAdvanced/Role/HasUA.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package WebService::PayPal::PaymentsAdvanced::Role::HasUA;
2              
3 7     7   5718 use Moo::Role;
  7         22  
  7         63  
4              
5 7     7   2768 use namespace::autoclean;
  7         20  
  7         56  
6              
7             our $VERSION = '0.000026';
8              
9 7     7   665 use LWP::UserAgent;
  7         21  
  7         108  
10 7     7   266 use Types::Standard qw( InstanceOf );
  7         20  
  7         134  
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;