Twilio/Rest/Insights/V3.pm

filter: Statementstmt 100% 34 / 34 Branchbran 100% 4 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod 100% 7 / 7 totaltotal 100% 55 / 55 CC 3 SCAR 2.9
CC
3
Cov
100%
custom_field_mappings
2.0
query_jobs
2.0
BEGIN
1.0
CRAP 1.3
« Twilio/Rest/FrontlineApi/V1.pm ↑ Summary Twilio/Rest/Knowledge/V1.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Insights::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 14 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
12 14 my ($class, $domain) = @_;
13 14 my $self = $class->SUPER::new($domain);
14 14 $self->{version} = 'v3';
15 14 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_field_mappings {
Subroutine custom_field_mappings: called CC=2 SCAR=6.9
Pod documented
20 5 my ($self, $mapping_id) = @_;
21 5 require Twilio::Rest::Insights::V3::CustomFieldMapping;
22 5 my $list = Twilio::Rest::Insights::V3::CustomFieldMappingList->new($self);
23 5 ▶ return defined $mapping_id ? $list->get_context($mapping_id) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $mapping_id ? : 2 3 5
24 }
25  
26 1 ▶sub custom_field_mappings_capacity {
Subroutine custom_field_mappings_capacity: called CC=1 SCAR=0.0
Pod documented
27 1 my ($self) = @_;
28 1 require Twilio::Rest::Insights::V3::CustomFieldMappingsCapacity;
29 1 return Twilio::Rest::Insights::V3::CustomFieldMappingsCapacityList->new($self);
30 }
31  
32 1 ▶sub metadata {
Subroutine metadata: called CC=1 SCAR=0.0
Pod documented
33 1 my ($self) = @_;
34 1 require Twilio::Rest::Insights::V3::Metadata;
35 1 return Twilio::Rest::Insights::V3::MetadataList->new($self);
36 }
37  
38 2 ▶sub query {
Subroutine query: called CC=1 SCAR=0.0
Pod documented
39 2 my ($self) = @_;
40 2 require Twilio::Rest::Insights::V3::Query;
41 2 return Twilio::Rest::Insights::V3::QueryList->new($self);
42 }
43  
44 3 ▶sub query_jobs {
Subroutine query_jobs: called CC=2 SCAR=6.9
Pod documented
45 3 my ($self, $operation_id) = @_;
46 3 require Twilio::Rest::Insights::V3::QueryJob;
47 3 my $list = Twilio::Rest::Insights::V3::QueryJobList->new($self);
48 3 ▶ return defined $operation_id ? $list->get_context($operation_id) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $operation_id ? : 1 2 3
49 }
50  
51 2 ▶sub results {
Subroutine results: called CC=1 SCAR=0.0
Pod documented
52 2 my ($self, $operation_id) = @_;
53 2 require Twilio::Rest::Insights::V3::Result;
54 2 return Twilio::Rest::Insights::V3::ResultList->new($self, $operation_id);
55 }
56  
57 3 1;
58  
59 __END__
« Twilio/Rest/FrontlineApi/V1.pm ↑ Summary Twilio/Rest/Knowledge/V1.pm »