File Coverage

blib/lib/WebService/Async/Onfido/Document.pm
Criterion Covered Total %
statement 9 13 69.2
branch n/a
condition 0 2 0.0
subroutine 3 6 50.0
pod 0 3 0.0
total 12 24 50.0


line stmt bran cond sub pod time code
1             package WebService::Async::Onfido::Document;
2              
3 2     2   12 use strict;
  2         4  
  2         52  
4 2     2   10 use warnings;
  2         5  
  2         48  
5              
6 2     2   8 use parent qw(WebService::Async::Onfido::Base::Document);
  2         4  
  2         10  
7              
8             our $VERSION = '0.005'; # VERSION
9              
10             =head1 NAME
11              
12             WebService::Async::Onfido::Document - represents data for Onfido
13              
14             =head1 DESCRIPTION
15              
16             =cut
17              
18             sub as_string {
19 0     0 0   my ($self) = @_;
20 0   0       return sprintf '%s %d byte %s, %s %s (ID %s)',
21             $self->file_name,
22             $self->file_size, uc($self->file_type),
23             $self->side // 'single',
24             $self->type,
25             $self->id;
26             }
27              
28 0     0 0   sub onfido { return shift->{onfido} }
29 0     0 0   sub applicant { return shift->{applicant} }
30              
31             1;
32              
33             __END__
34              
35             =head1 AUTHOR
36              
37             deriv.com C<< DERIV@cpan.org >>
38              
39             =head1 LICENSE
40              
41             Copyright deriv.com 2019. Licensed under the same terms as Perl itself.
42