File Coverage

blib/lib/WebService/Box/Types/SharedLink.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 20 20 100.0


line stmt bran cond sub pod time code
1             package WebService::Box::Types::SharedLink;
2              
3 9     9   57 use strict;
  9         19  
  9         343  
4 9     9   53 use warnings;
  9         15  
  9         278  
5              
6 9     9   47 use Moo;
  9         19  
  9         75  
7 9     9   3080 use Types::Standard qw(Int Str Dict);
  9         28  
  9         82  
8              
9 9         109 use WebService::Box::Types::Library qw(
10             OptionalTimestamp OptionalStr SharedLinkPermissionHash
11 9     9   6256 );
  9         19  
12              
13             our $VERSION = 0.01;
14              
15             has [qw/url download_url access/] => (is => 'ro', isa => Str);
16             has [qw/download_count preview_count/] => (is => 'ro', isa => Int);
17             has [qw/vanity_url is_password_enabled/] => (is => 'ro', isa => OptionalStr);
18              
19             has unshared_at => (is => 'ro', isa => OptionalTimestamp);
20             has permission => (is => 'ro', isa => SharedLinkPermissionHash);
21              
22             1;
23              
24             __END__