Twilio/Rest/Intelligence/V2/Transcript/EncryptedOperatorResults.pm

filter: Statementstmt 90.2% 37 / 41 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 86.6% 13 / 15 Podpod n/a totaltotal 86.4% 51 / 59 CC 2 SCAR 2.2
CC
2
Cov
88%
fetch
2.0
fetch
2.0
_context
2.0
CRAP 1.3
« Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/BundleCopy.pm ↑ Summary Twilio/Rest/Intelligence/V2/Transcript/EncryptedSentences.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Intelligence::V2::Transcript::EncryptedOperatorResults;
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::Intelligence::V2::Transcript::EncryptedOperatorResultsContext;
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, $transcript_sid) = @_;
17 1 my $self = $class->SUPER::new($version);
18 1 $self->{solution} = { transcript_sid => $transcript_sid };
19 1 $self->{uri} = join q{}, '/Transcripts/', Twilio::Serialize::path_segment($transcript_sid),
20 '/OperatorResults/Encrypted';
21 1 return $self;
22 }
23  
24 1 ▶sub fetch {
Subroutine fetch: called CC=2 SCAR=7.0
25 1 my ($self, $options) = @_;
26 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
27  
28 my $response = $self->{version}->handle_request('GET', $self->{uri}, 'fetch',
29 1 { params => { Redacted => Twilio::Serialize::boolean_to_string($options->{redacted}), } });
30 1 return $self->_build_instance($response);
31 }
32  
33 1 ▶sub _build_instance {
Subroutine _build_instance: called CC=1 SCAR=0.0
34 1 my ($self, $response) = @_;
35 return Twilio::Rest::Intelligence::V2::Transcript::EncryptedOperatorResultsInstance->new(
36 1 $self->{version}, $response->get_content, $self->{solution}{transcript_sid});
37 }
38  
39 package Twilio::Rest::Intelligence::V2::Transcript::EncryptedOperatorResultsInstance;
40  
41 2 ▶use parent 'Twilio::InstanceResource';
Subroutine BEGIN: called CC=1 SCAR=0.0
42  
43 2 ▶use Twilio::Deserialize;
Subroutine BEGIN: called CC=1 SCAR=0.0
44  
45 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
46 1 my ($class, $version, $payload, $transcript_sid) = @_;
47 1 my $self = $class->SUPER::new($version, $payload);
48 1 $self->{solution} = { transcript_sid => $transcript_sid };
49 1 return $self;
50 }
51  
52 0 ▶sub fetch {
Subroutine fetch: not called CC=1 SCAR=6.9
53 0 my ($self, @arguments) = @_;
54 0 return $self->_context->fetch(@arguments);
55 }
56  
57 0 ▶sub _context {
Subroutine _context: not called CC=1 SCAR=6.9
58 0 my ($self) = @_;
59 return Twilio::Rest::Intelligence::V2::Transcript::EncryptedOperatorResultsContext->new(
60 0 $self->{version}, $self->{solution}{transcript_sid});
61 }
62  
63 1 ▶sub locations { return $_[0]{properties}{locations} }
Subroutine locations: called CC=1 SCAR=0.0
64 1 ▶sub transcript_sid { return $_[0]{properties}{transcript_sid} }
Subroutine transcript_sid: called CC=1 SCAR=0.0
65 1 ▶sub url { return $_[0]{properties}{url} }
Subroutine url: called CC=1 SCAR=0.0
66  
67 2 1;
68  
69 __END__
« Twilio/Rest/Numbers/V2/RegulatoryCompliance/Bundle/BundleCopy.pm ↑ Summary Twilio/Rest/Intelligence/V2/Transcript/EncryptedSentences.pm »