Twilio/Rest/Intelligence/V2.pm

filter: Statementstmt 100% 45 / 45 Branchbran 92.8% 13 / 14 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 12 / 12 Podpod 100% 9 / 9 totaltotal 98.7% 79 / 80 CC 8 SCAR 5.5
CC
8
Cov
98%
operator_attachment
2.0
custom_operators
2.0
operators
2.0
CRAP 1.7
« Twilio/Http/TinyClient.pm ↑ Summary Twilio/Rest/Numbers/V2/RegulatoryCompliance.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Intelligence::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 29 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
12 29 my ($class, $domain) = @_;
13 29 my $self = $class->SUPER::new($domain);
14 29 $self->{version} = 'v2';
15 29 return $self;
16 }
17  
18 # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client.
19 5 ▶sub custom_operators {
Subroutine custom_operators: called CC=2 SCAR=6.9
Pod documented
20 5 my ($self, $sid) = @_;
21 5 require Twilio::Rest::Intelligence::V2::CustomOperator;
22 5 my $list = Twilio::Rest::Intelligence::V2::CustomOperatorList->new($self);
23 5 ▶ return defined $sid ? $list->get_context($sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sid ? : 3 2 5
24 }
25  
26 2 ▶sub operators {
Subroutine operators: called CC=2 SCAR=6.9
Pod documented
27 2 my ($self, $sid) = @_;
28 2 require Twilio::Rest::Intelligence::V2::Operator;
29 2 my $list = Twilio::Rest::Intelligence::V2::OperatorList->new($self);
30 2 ▶ return defined $sid ? $list->get_context($sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sid ? : 1 1 2
31 }
32  
33 2 ▶sub operator_attachment {
Subroutine operator_attachment: called CC=2 SCAR=7.0
Pod documented
34 2 my ($self, $service_sid, $operator_sid) = @_;
35 2 require Twilio::Rest::Intelligence::V2::OperatorAttachment;
36 2 my $list = Twilio::Rest::Intelligence::V2::OperatorAttachmentList->new($self, $service_sid);
37 2 ▶ return defined $operator_sid ? $list->get_context($operator_sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $operator_sid ? : 2 0 2
38 }
39  
40 1 ▶sub operator_attachments {
Subroutine operator_attachments: called CC=1 SCAR=0.0
Pod documented
41 1 my ($self, $service_sid) = @_;
42 1 require Twilio::Rest::Intelligence::V2::OperatorAttachments;
43 1 return Twilio::Rest::Intelligence::V2::OperatorAttachmentsContext->new($self, $service_sid);
44 }
45  
46 2 ▶sub operator_type {
Subroutine operator_type: called CC=2 SCAR=6.9
Pod documented
47 2 my ($self, $sid) = @_;
48 2 require Twilio::Rest::Intelligence::V2::OperatorType;
49 2 my $list = Twilio::Rest::Intelligence::V2::OperatorTypeList->new($self);
50 2 ▶ return defined $sid ? $list->get_context($sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sid ? : 1 1 2
51 }
52  
53 2 ▶sub prebuilt_operators {
Subroutine prebuilt_operators: called CC=2 SCAR=6.9
Pod documented
54 2 my ($self, $sid) = @_;
55 2 require Twilio::Rest::Intelligence::V2::PrebuiltOperator;
56 2 my $list = Twilio::Rest::Intelligence::V2::PrebuiltOperatorList->new($self);
57 2 ▶ return defined $sid ? $list->get_context($sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sid ? : 1 1 2
58 }
59  
60 5 ▶sub services {
Subroutine services: called CC=2 SCAR=6.9
Pod documented
61 5 my ($self, $sid) = @_;
62 5 require Twilio::Rest::Intelligence::V2::Service;
63 5 my $list = Twilio::Rest::Intelligence::V2::ServiceList->new($self);
64 5 ▶ return defined $sid ? $list->get_context($sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sid ? : 3 2 5
65 }
66  
67 10 ▶sub transcripts {
Subroutine transcripts: called CC=2 SCAR=6.9
Pod documented
68 10 my ($self, $sid) = @_;
69 10 require Twilio::Rest::Intelligence::V2::Transcript;
70 10 my $list = Twilio::Rest::Intelligence::V2::TranscriptList->new($self);
71 10 ▶ return defined $sid ? $list->get_context($sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sid ? : 8 2 10
72 }
73  
74 2 1;
75  
76 __END__
« Twilio/Http/TinyClient.pm ↑ Summary Twilio/Rest/Numbers/V2/RegulatoryCompliance.pm »