Twilio/Rest/Intelligence/V3.pm

filter: Statementstmt 100% 37 / 37 Branchbran 100% 10 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod 100% 7 / 7 totaltotal 100% 64 / 64 CC 6 SCAR 5.1
CC
6
Cov
100%
configurations
2.0
conversations
2.0
operators
2.0
CRAP 1.7
« Twilio/Http/Response.pm ↑ Summary Twilio/Rest/Api/V2010/Account.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Intelligence::V3;
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::ApiV1Version';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 our $VERSION = '2.001';
10  
11 20 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
12 20 my ($class, $domain) = @_;
13 20 my $self = $class->SUPER::new($domain);
14 20 $self->{version} = 'v3';
15 20 return $self;
16 }
17  
18 # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client.
19 5 ▶sub configurations {
Subroutine configurations: called CC=2 SCAR=6.9
Pod documented
20 5 my ($self, $id) = @_;
21 5 require Twilio::Rest::Intelligence::V3::Configuration;
22 5 my $list = Twilio::Rest::Intelligence::V3::ConfigurationList->new($self);
23 5 ▶ return defined $id ? $list->get_context($id) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $id ? : 3 2 5
24 }
25  
26 2 ▶sub conversations {
Subroutine conversations: called CC=2 SCAR=6.9
Pod documented
27 2 my ($self, $id) = @_;
28 2 require Twilio::Rest::Intelligence::V3::Conversation;
29 2 my $list = Twilio::Rest::Intelligence::V3::ConversationList->new($self);
30 2 ▶ return defined $id ? $list->get_context($id) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $id ? : 1 1 2
31 }
32  
33 5 ▶sub operators {
Subroutine operators: called CC=2 SCAR=6.9
Pod documented
34 5 my ($self, $id) = @_;
35 5 require Twilio::Rest::Intelligence::V3::Operator;
36 5 my $list = Twilio::Rest::Intelligence::V3::OperatorList->new($self);
37 5 ▶ return defined $id ? $list->get_context($id) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $id ? : 3 2 5
38 }
39  
40 3 ▶sub operator_results {
Subroutine operator_results: called CC=2 SCAR=6.9
Pod documented
41 3 my ($self, $operator_result_id) = @_;
42 3 require Twilio::Rest::Intelligence::V3::OperatorResult;
43 3 my $list = Twilio::Rest::Intelligence::V3::OperatorResultList->new($self);
44 3 ▶ return defined $operator_result_id ? $list->get_context($operator_result_id) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $operator_result_id ? : 2 1 3
45 }
46  
47 2 ▶sub rule_executions {
Subroutine rule_executions: called CC=1 SCAR=0.0
Pod documented
48 2 my ($self) = @_;
49 2 require Twilio::Rest::Intelligence::V3::RuleExecution;
50 2 return Twilio::Rest::Intelligence::V3::RuleExecutionList->new($self);
51 }
52  
53 3 ▶sub versions {
Subroutine versions: called CC=2 SCAR=6.9
Pod documented
54 3 my ($self, $id, $path_version) = @_;
55 3 require Twilio::Rest::Intelligence::V3::Version;
56 3 my $list = Twilio::Rest::Intelligence::V3::VersionList->new($self, $id);
57 3 ▶ return defined $path_version ? $list->get_context($path_version) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $path_version ? : 2 1 3
58 }
59  
60 3 1;
61  
62 __END__
« Twilio/Http/Response.pm ↑ Summary Twilio/Rest/Api/V2010/Account.pm »