Twilio/Rest/Proxy/V1.pm

filter: Statementstmt 100% 18 / 18 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 2 / 2 totaltotal 100% 27 / 27 CC 2 SCAR 2.9
CC
2
Cov
100%
services
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Twilio/Rest/Knowledge/V1.pm ↑ Summary Twilio/Rest/Serverless/V1.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Proxy::V1;
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 25 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
12 25 my ($class, $domain) = @_;
13 25 my $self = $class->SUPER::new($domain);
14 25 $self->{version} = 'v1';
15 25 return $self;
16 }
17  
18 # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client.
19 25 ▶sub services {
Subroutine services: called CC=2 SCAR=6.9
Pod documented
20 25 my ($self, $sid) = @_;
21 25 require Twilio::Rest::Proxy::V1::Service;
22 25 my $list = Twilio::Rest::Proxy::V1::ServiceList->new($self);
23 25 ▶ return defined $sid ? $list->get_context($sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sid ? : 23 2 25
24 }
25  
26 2 1;
27  
28 __END__
« Twilio/Rest/Knowledge/V1.pm ↑ Summary Twilio/Rest/Serverless/V1.pm »