Twilio/Rest/Notify/V1.pm

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