Twilio/Rest/Routes/V3.pm

filter: Statementstmt 100% 22 / 22 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 3 / 3 totaltotal 94.2% 33 / 35 CC 3 SCAR 4.1
CC
3
Cov
92%
iso_country_code
2.0
phone_numbers
2.0
BEGIN
1.0
CRAP 1.5
« Twilio/Rest/Taskrouter/V1/Workspace.pm ↑ Summary Twilio/Rest/Lookups/V2.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Routes::V3;
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::ApiV1Version';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 our $VERSION = '2.001';
10  
11 7 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
12 7 my ($class, $domain) = @_;
13 7 my $self = $class->SUPER::new($domain);
14 7 $self->{version} = 'v3';
15 7 return $self;
16 }
17  
18 # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client.
19 3 ▶sub iso_country_code {
Subroutine iso_country_code: called CC=2 SCAR=7.0
Pod documented
20 3 my ($self, $iso_country_code, $short_code) = @_;
21 3 require Twilio::Rest::Routes::V3::IsoCountryCode;
22 3 my $list = Twilio::Rest::Routes::V3::IsoCountryCodeList->new($self, $iso_country_code);
23 3 ▶ return defined $short_code ? $list->get_context($short_code) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $short_code ? : 3 0 3
24 }
25  
26 4 ▶sub phone_numbers {
Subroutine phone_numbers: called CC=2 SCAR=7.0
Pod documented
27 4 my ($self, $phone_number) = @_;
28 4 require Twilio::Rest::Routes::V3::PhoneNumber;
29 4 my $list = Twilio::Rest::Routes::V3::PhoneNumberList->new($self);
30 4 ▶ return defined $phone_number ? $list->get_context($phone_number) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $phone_number ? : 4 0 4
31 }
32  
33 3 1;
34  
35 __END__
« Twilio/Rest/Taskrouter/V1/Workspace.pm ↑ Summary Twilio/Rest/Lookups/V2.pm »