Twilio/Rest/FlexApi/V1/InsightsSettingsAnswerSets.pm

filter: Statementstmt 100% 37 / 37 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 14 / 14 Podpod n/a totaltotal 96.3% 52 / 54 CC 2 SCAR 1.3
CC
2
Cov
97%
fetch
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Twilio/Rest/Api/V2010/Account/NewSigningKey.pm ↑ Summary Twilio/Rest/Iam/V1/Token.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::FlexApi::V1::InsightsSettingsAnswerSets;
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::InsightsSettingsAnswerSetsList;
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/AnswerSets';
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::InsightsSettingsAnswerSetsInstance->new($self->{version},
30 1 $response->get_content);
31 }
32  
33 package Twilio::Rest::FlexApi::V1::InsightsSettingsAnswerSetsInstance;
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 answer_set_categories { return $_[0]{properties}{answer_set_categories} }
Subroutine answer_set_categories: called CC=1 SCAR=0.0
48 1 ▶sub answer_sets { return $_[0]{properties}{answer_sets} }
Subroutine answer_sets: called CC=1 SCAR=0.0
49 1 ▶sub not_applicable { return $_[0]{properties}{not_applicable} }
Subroutine not_applicable: called CC=1 SCAR=0.0
50 1 ▶sub url { return $_[0]{properties}{url} }
Subroutine url: called CC=1 SCAR=0.0
51  
52 2 1;
53  
54 __END__
« Twilio/Rest/Api/V2010/Account/NewSigningKey.pm ↑ Summary Twilio/Rest/Iam/V1/Token.pm »