Twilio/Rest/Insights/V1.pm

filter: Statementstmt 100% 32 / 32 Branchbran 83.3% 5 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod 100% 6 / 6 totaltotal 98.1% 52 / 53 CC 4 SCAR 4.1
CC
4
Cov
97%
calls
2.0
conferences
2.0
rooms
2.0
CRAP 1.5
« Twilio/Rest/Lookups/V2.pm ↑ Summary Twilio/Rest/Knowledge/V2.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Insights::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 17 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
12 17 my ($class, $domain) = @_;
13 17 my $self = $class->SUPER::new($domain);
14 17 $self->{version} = 'v1';
15 17 return $self;
16 }
17  
18 # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client.
19 6 ▶sub calls {
Subroutine calls: called CC=2 SCAR=7.0
Pod documented
20 6 my ($self, $sid) = @_;
21 6 require Twilio::Rest::Insights::V1::Call;
22 6 my $list = Twilio::Rest::Insights::V1::CallList->new($self);
23 6 ▶ return defined $sid ? $list->get_context($sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sid ? : 6 0 6
24 }
25  
26 1 ▶sub call_summaries {
Subroutine call_summaries: called CC=1 SCAR=0.0
Pod documented
27 1 my ($self) = @_;
28 1 require Twilio::Rest::Insights::V1::CallSummaries;
29 1 return Twilio::Rest::Insights::V1::CallSummariesList->new($self);
30 }
31  
32 4 ▶sub conferences {
Subroutine conferences: called CC=2 SCAR=6.9
Pod documented
33 4 my ($self, $conference_sid) = @_;
34 4 require Twilio::Rest::Insights::V1::Conference;
35 4 my $list = Twilio::Rest::Insights::V1::ConferenceList->new($self);
36 4 ▶ return defined $conference_sid ? $list->get_context($conference_sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $conference_sid ? : 3 1 4
37 }
38  
39 4 ▶sub rooms {
Subroutine rooms: called CC=2 SCAR=6.9
Pod documented
40 4 my ($self, $room_sid) = @_;
41 4 require Twilio::Rest::Insights::V1::Room;
42 4 my $list = Twilio::Rest::Insights::V1::RoomList->new($self);
43 4 ▶ return defined $room_sid ? $list->get_context($room_sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $room_sid ? : 3 1 4
44 }
45  
46 2 ▶sub settings {
Subroutine settings: called CC=1 SCAR=0.0
Pod documented
47 2 my ($self) = @_;
48 2 require Twilio::Rest::Insights::V1::Setting;
49 2 return Twilio::Rest::Insights::V1::SettingContext->new($self);
50 }
51  
52 2 1;
53  
54 __END__
« Twilio/Rest/Lookups/V2.pm ↑ Summary Twilio/Rest/Knowledge/V2.pm »