Twilio/Rest/Messaging/V2.pm

filter: Statementstmt 100% 24 / 24 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 4 / 4 totaltotal 100% 37 / 37 CC 2 SCAR 2.2
CC
2
Cov
100%
channels_senders
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Twilio/Rest/Content/V1.pm ↑ Summary Twilio/Rest/Studio/V1/Flow/Engagement/Step.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Messaging::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 13 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
12 13 my ($class, $domain) = @_;
13 13 my $self = $class->SUPER::new($domain);
14 13 $self->{version} = 'v2';
15 13 return $self;
16 }
17  
18 # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client.
19 11 ▶sub channels_senders {
Subroutine channels_senders: called CC=2 SCAR=6.9
Pod documented
20 11 my ($self, $sid) = @_;
21 11 require Twilio::Rest::Messaging::V2::ChannelsSender;
22 11 my $list = Twilio::Rest::Messaging::V2::ChannelsSenderList->new($self);
23 11 ▶ return defined $sid ? $list->get_context($sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sid ? : 8 3 11
24 }
25  
26 1 ▶sub domain_certs {
Subroutine domain_certs: called CC=1 SCAR=0.0
Pod documented
27 1 my ($self, $domain_sid) = @_;
28 1 require Twilio::Rest::Messaging::V2::DomainCerts;
29 1 return Twilio::Rest::Messaging::V2::DomainCertsContext->new($self, $domain_sid);
30 }
31  
32 1 ▶sub typing_indicator {
Subroutine typing_indicator: called CC=1 SCAR=0.0
Pod documented
33 1 my ($self) = @_;
34 1 require Twilio::Rest::Messaging::V2::TypingIndicator;
35 1 return Twilio::Rest::Messaging::V2::TypingIndicatorList->new($self);
36 }
37  
38 3 1;
39  
40 __END__
« Twilio/Rest/Content/V1.pm ↑ Summary Twilio/Rest/Studio/V1/Flow/Engagement/Step.pm »