Twilio/Rest/FlexApi/V1/InsightsUserRoles.pm

filter: Statementstmt 90.0% 36 / 40 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 85.7% 12 / 14 Podpod n/a totaltotal 85.9% 49 / 57 CC 2 SCAR 2.4
CC
2
Cov
88%
fetch
2.0
fetch
2.0
_context
2.0
CRAP 1.3
« Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMapping.pm ↑ Summary Twilio/Rest/Api/V2010/Account/Call/UserDefinedMessageSubscription.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::FlexApi::V1::InsightsUserRoles;
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::InsightsUserRolesContext;
10  
11 2 ▶use parent 'Twilio::InstanceContext';
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/UserRoles';
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 1 return $self->_build_instance($response);
30 }
31  
32 1 ▶sub _build_instance {
Subroutine _build_instance: called CC=1 SCAR=0.0
33 1 my ($self, $response) = @_;
34 return Twilio::Rest::FlexApi::V1::InsightsUserRolesInstance->new($self->{version},
35 1 $response->get_content);
36 }
37  
38 package Twilio::Rest::FlexApi::V1::InsightsUserRolesInstance;
39  
40 2 ▶use parent 'Twilio::InstanceResource';
Subroutine BEGIN: called CC=1 SCAR=0.0
41  
42 2 ▶use Twilio::Deserialize;
Subroutine BEGIN: called CC=1 SCAR=0.0
43  
44 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
45 1 my ($class, $version, $payload) = @_;
46 1 my $self = $class->SUPER::new($version, $payload);
47 1 $self->{solution} = {};
48 1 return $self;
49 }
50  
51 0 ▶sub fetch {
Subroutine fetch: not called CC=1 SCAR=6.9
52 0 my ($self, @arguments) = @_;
53 0 return $self->_context->fetch(@arguments);
54 }
55  
56 0 ▶sub _context {
Subroutine _context: not called CC=1 SCAR=6.9
57 0 my ($self) = @_;
58 0 return Twilio::Rest::FlexApi::V1::InsightsUserRolesContext->new($self->{version});
59 }
60  
61 1 ▶sub roles { return $_[0]{properties}{roles} }
Subroutine roles: called CC=1 SCAR=0.0
62 1 ▶sub url { return $_[0]{properties}{url} }
Subroutine url: called CC=1 SCAR=0.0
63  
64 2 1;
65  
66 __END__
« Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeCalls/AuthCallsCredentialListMapping.pm ↑ Summary Twilio/Rest/Api/V2010/Account/Call/UserDefinedMessageSubscription.pm »