lib/WebService/Async/Onfido/Base/Photo.pm

filter: Statementstmt 76.1% 16 / 21 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 54.5% 6 / 11 Podpod 75.0% 6 / 8 totaltotal 69.0% 29 / 42 CC 2 SCAR 4.6
CC
2
Cov
74%
new
2.0
created_at
2.0
href
2.0
CRAP 1.6
« lib/WebService/Async/Onfido/Base/Check.pm ↑ Summary lib/WebService/Async/Onfido/Base/Report.pm »
1 package WebService::Async::Onfido::Base::Photo;
2  
3 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 5 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 5 our $VERSION = '0.007'; # VERSION
9  
10 =head1 NAME
11  
12 WebService::Async::Onfido::Base::Photo - represents data for Onfido
13  
14 =head1 DESCRIPTION
15  
16 This is autogenerated from the documentation in L<https://documentation.onfido.com>.
17  
18 =cut
19  
20 3 ▶sub new {
Subroutine new: called CC=2 SCAR=7.1
Pod undocumented
21 3 my ($class, %args) = @_;
22 3 ▶ Scalar::Util::weaken($args{onfido}) if $args{onfido};
Branch: 1 branch
BranchTrueFalseTotal
if $args{"onfido"} 3 0 3
23 3 return bless \%args, $class;
24 }
25  
26 =head1 METHODS
27 =head2 id
28  
29 The unique identifier of the live photo.
30  
31 =cut
32  
33 2 ▶sub id : method { return shift->{id} }
Subroutine id: called CC=1 SCAR=0.0
Pod undocumented
34  
35 =head2 created_at
36  
37 The date and time at which the live photo was uploaded.
38  
39 =cut
40  
41 0 ▶sub created_at : method { return shift->{created_at} }
Subroutine created_at: not called CC=1 SCAR=6.9
Pod documented
42  
43 =head2 href
44  
45 The URI of this resource.
46  
47 =cut
48  
49 0 ▶sub href : method { return shift->{href} }
Subroutine href: not called CC=1 SCAR=6.9
Pod documented
50  
51 =head2 download_href
52  
53 The URI that can be used to download the live photo.
54  
55 =cut
56  
57 0 ▶sub download_href : method { return shift->{download_href} }
Subroutine download_href: not called CC=1 SCAR=6.9
Pod documented
58  
59 =head2 file_name
60  
61 The name of the uploaded file.
62  
63 =cut
64  
65 1 ▶sub file_name : method { return shift->{file_name} }
Subroutine file_name: called CC=1 SCAR=0.0
Pod documented
66  
67 =head2 file_type
68  
69 The file type of the uploaded file.
70  
71 =cut
72  
73 0 ▶sub file_type : method { return shift->{file_type} }
Subroutine file_type: not called CC=1 SCAR=6.9
Pod documented
74  
75 =head2 file_size
76  
77 The size of the file in bytes.
78  
79 =cut
80  
81 0 ▶sub file_size : method { return shift->{file_size} }
Subroutine file_size: not called CC=1 SCAR=6.9
Pod documented
82  
83 5 1;
84  
85 __END__
« lib/WebService/Async/Onfido/Base/Check.pm ↑ Summary lib/WebService/Async/Onfido/Base/Report.pm »