Twilio/Rest/Verify/V2.pm

filter: Statementstmt 100% 36 / 36 Branchbran 87.5% 7 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod 100% 7 / 7 totaltotal 98.3% 60 / 61 CC 5 SCAR 4.5
CC
5
Cov
98%
forms
2.0
safelist
2.0
services
2.0
CRAP 1.6
« Twilio/Rest/FlexApi/V1.pm ↑ Summary Twilio/Rest/Numbers/V2.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Verify::V2;
3  
4 3 ▶use 5.016;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶use parent 'Twilio::Version';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 our $VERSION = '2.001';
10  
11 61 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
12 61 my ($class, $domain) = @_;
13 61 my $self = $class->SUPER::new($domain);
14 61 $self->{version} = 'v2';
15 61 return $self;
16 }
17  
18 # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client.
19 1 ▶sub forms {
Subroutine forms: called CC=2 SCAR=7.0
Pod documented
20 1 my ($self, $form_type) = @_;
21 1 require Twilio::Rest::Verify::V2::Form;
22 1 my $list = Twilio::Rest::Verify::V2::FormList->new($self);
23 1 ▶ return defined $form_type ? $list->get_context($form_type) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $form_type ? : 1 0 1
24 }
25  
26 3 ▶sub safelist {
Subroutine safelist: called CC=2 SCAR=6.9
Pod documented
27 3 my ($self, $phone_number) = @_;
28 3 require Twilio::Rest::Verify::V2::Safelist;
29 3 my $list = Twilio::Rest::Verify::V2::SafelistList->new($self);
30 3 ▶ return defined $phone_number ? $list->get_context($phone_number) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $phone_number ? : 2 1 3
31 }
32  
33 53 ▶sub services {
Subroutine services: called CC=2 SCAR=6.9
Pod documented
34 53 my ($self, $sid) = @_;
35 53 require Twilio::Rest::Verify::V2::Service;
36 53 my $list = Twilio::Rest::Verify::V2::ServiceList->new($self);
37 53 ▶ return defined $sid ? $list->get_context($sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sid ? : 51 2 53
38 }
39  
40 1 ▶sub templates {
Subroutine templates: called CC=1 SCAR=0.0
Pod documented
41 1 my ($self) = @_;
42 1 require Twilio::Rest::Verify::V2::Template;
43 1 return Twilio::Rest::Verify::V2::TemplateList->new($self);
44 }
45  
46 2 ▶sub verification_attempts {
Subroutine verification_attempts: called CC=2 SCAR=6.9
Pod documented
47 2 my ($self, $sid) = @_;
48 2 require Twilio::Rest::Verify::V2::VerificationAttempt;
49 2 my $list = Twilio::Rest::Verify::V2::VerificationAttemptList->new($self);
50 2 ▶ return defined $sid ? $list->get_context($sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sid ? : 1 1 2
51 }
52  
53 1 ▶sub verification_attempts_summary {
Subroutine verification_attempts_summary: called CC=1 SCAR=0.0
Pod documented
54 1 my ($self) = @_;
55 1 require Twilio::Rest::Verify::V2::VerificationAttemptsSummary;
56 1 return Twilio::Rest::Verify::V2::VerificationAttemptsSummaryContext->new($self);
57 }
58  
59 3 1;
60  
61 __END__
« Twilio/Rest/FlexApi/V1.pm ↑ Summary Twilio/Rest/Numbers/V2.pm »