Twilio/Rest/FlexApi/V1/InsightsSettingsComment.pm

filter: Statementstmt 100% 35 / 35 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 12 / 12 Podpod n/a totaltotal 96.0% 48 / 50 CC 2 SCAR 1.5
CC
2
Cov
97%
fetch
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Twilio/Rest/Numbers/V1/BulkEligibility.pm ↑ Summary Twilio/Rest/Insights/V3/Result.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::FlexApi::V1::InsightsSettingsComment;
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 our $VERSION = '2.001';
8  
9 package Twilio::Rest::FlexApi::V1::InsightsSettingsCommentList;
10  
11 2 ▶use parent 'Twilio::ListResource';
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 2 ▶use Twilio::Serialize;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
16 1 my ($class, $version) = @_;
17 1 my $self = $class->SUPER::new($version);
18 1 $self->{solution} = {};
19 1 $self->{uri} = '/Insights/QualityManagement/Settings/CommentTags';
20 1 return $self;
21 }
22  
23 1 ▶sub fetch {
Subroutine fetch: called CC=2 SCAR=7.0
24 1 my ($self, $options) = @_;
25 1 ▶ $options //= {};
Condition50%1/2
$options //= {}
l!l
10
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
Aresult
11
00
26  
27 my $response = $self->{version}->handle_request('GET', $self->{uri}, 'fetch',
28 1 { headers => { Authorization => $options->{authorization}, } });
29 return Twilio::Rest::FlexApi::V1::InsightsSettingsCommentInstance->new($self->{version},
30 1 $response->get_content);
31 }
32  
33 package Twilio::Rest::FlexApi::V1::InsightsSettingsCommentInstance;
34  
35 2 ▶use parent 'Twilio::InstanceResource';
Subroutine BEGIN: called CC=1 SCAR=0.0
36  
37 2 ▶use Twilio::Deserialize;
Subroutine BEGIN: called CC=1 SCAR=0.0
38  
39 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
40 1 my ($class, $version, $payload) = @_;
41 1 my $self = $class->SUPER::new($version, $payload);
42 1 $self->{solution} = {};
43 1 return $self;
44 }
45  
46 1 ▶sub account_sid { return $_[0]{properties}{account_sid} }
Subroutine account_sid: called CC=1 SCAR=0.0
47 1 ▶sub comments { return $_[0]{properties}{comments} }
Subroutine comments: called CC=1 SCAR=0.0
48 1 ▶sub url { return $_[0]{properties}{url} }
Subroutine url: called CC=1 SCAR=0.0
49  
50 2 1;
51  
52 __END__
« Twilio/Rest/Numbers/V1/BulkEligibility.pm ↑ Summary Twilio/Rest/Insights/V3/Result.pm »