Twilio/Rest/Routes/V2.pm

filter: Statementstmt 100% 26 / 26 Branchbran 50.0% 3 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 4 / 4 totaltotal 93.0% 40 / 43 CC 4 SCAR 4.8
CC
4
Cov
91%
phone_numbers
2.0
sip_domains
2.0
trunks
2.0
CRAP 1.6
« Twilio/Rest/Webhooks/V1.pm ↑ Summary Twilio/Rest/Trusthub/V1.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Routes::V2;
3  
4 2 ▶use 5.016;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 ▶use parent 'Twilio::Version';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 our $VERSION = '2.001';
10  
11 6 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
12 6 my ($class, $domain) = @_;
13 6 my $self = $class->SUPER::new($domain);
14 6 $self->{version} = 'v2';
15 6 return $self;
16 }
17  
18 # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client.
19 2 ▶sub phone_numbers {
Subroutine phone_numbers: called CC=2 SCAR=7.0
Pod documented
20 2 my ($self, $phone_number) = @_;
21 2 require Twilio::Rest::Routes::V2::PhoneNumber;
22 2 my $list = Twilio::Rest::Routes::V2::PhoneNumberList->new($self);
23 2 ▶ return defined $phone_number ? $list->get_context($phone_number) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $phone_number ? : 2 0 2
24 }
25  
26 2 ▶sub sip_domains {
Subroutine sip_domains: called CC=2 SCAR=7.0
Pod documented
27 2 my ($self, $sip_domain) = @_;
28 2 require Twilio::Rest::Routes::V2::SipDomain;
29 2 my $list = Twilio::Rest::Routes::V2::SipDomainList->new($self);
30 2 ▶ return defined $sip_domain ? $list->get_context($sip_domain) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sip_domain ? : 2 0 2
31 }
32  
33 2 ▶sub trunks {
Subroutine trunks: called CC=2 SCAR=7.0
Pod documented
34 2 my ($self, $sip_trunk_domain) = @_;
35 2 require Twilio::Rest::Routes::V2::Trunk;
36 2 my $list = Twilio::Rest::Routes::V2::TrunkList->new($self);
37 2 ▶ return defined $sip_trunk_domain ? $list->get_context($sip_trunk_domain) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sip_trunk_domain ? : 2 0 2
38 }
39  
40 2 1;
41  
42 __END__
« Twilio/Rest/Webhooks/V1.pm ↑ Summary Twilio/Rest/Trusthub/V1.pm »