Twilio/Rest/Verify/V2/VerificationAttemptsSummary.pm

filter: Statementstmt 90.7% 39 / 43 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 88.2% 15 / 17 Podpod n/a totaltotal 87.3% 55 / 63 CC 2 SCAR 2.0
CC
2
Cov
89%
fetch
2.0
fetch
2.0
_context
2.0
CRAP 1.2
« Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatistics.pm ↑ Summary Twilio/Rest/Accounts/V1/AuthTokenPromotion.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Verify::V2::VerificationAttemptsSummary;
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::Verify::V2::VerificationAttemptsSummaryContext;
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} = '/Attempts/Summary';
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(
28 'GET',
29 $self->{uri},
30 'fetch',
31 {
32 params => {
33 Channel => $options->{channel},
34 Country => $options->{country},
35 DateCreatedAfter => Twilio::Serialize::iso8601_date_time($options->{date_created_after}),
36 DateCreatedBefore => Twilio::Serialize::iso8601_date_time($options->{date_created_before}),
37 DestinationPrefix => $options->{destination_prefix},
38 VerifyServiceSid => $options->{verify_service_sid},
39 }
40 }
41 1 );
42 1 return $self->_build_instance($response);
43 }
44  
45 1 ▶sub _build_instance {
Subroutine _build_instance: called CC=1 SCAR=0.0
46 1 my ($self, $response) = @_;
47 return Twilio::Rest::Verify::V2::VerificationAttemptsSummaryInstance->new($self->{version},
48 1 $response->get_content);
49 }
50  
51 package Twilio::Rest::Verify::V2::VerificationAttemptsSummaryInstance;
52  
53 2 ▶use parent 'Twilio::InstanceResource';
Subroutine BEGIN: called CC=1 SCAR=0.0
54  
55 2 ▶use Twilio::Deserialize;
Subroutine BEGIN: called CC=1 SCAR=0.0
56  
57 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
58 1 my ($class, $version, $payload) = @_;
59 1 my $self = $class->SUPER::new($version, $payload);
60 1 $self->{solution} = {};
61 1 return $self;
62 }
63  
64 0 ▶sub fetch {
Subroutine fetch: not called CC=1 SCAR=6.9
65 0 my ($self, @arguments) = @_;
66 0 return $self->_context->fetch(@arguments);
67 }
68  
69 0 ▶sub _context {
Subroutine _context: not called CC=1 SCAR=6.9
70 0 my ($self) = @_;
71 0 return Twilio::Rest::Verify::V2::VerificationAttemptsSummaryContext->new($self->{version});
72 }
73  
74 1 ▶sub conversion_rate_percentage { return $_[0]{properties}{conversion_rate_percentage} }
Subroutine conversion_rate_percentage: called CC=1 SCAR=0.0
75 1 ▶sub total_attempts { return $_[0]{properties}{total_attempts} }
Subroutine total_attempts: called CC=1 SCAR=0.0
76 1 ▶sub total_converted { return $_[0]{properties}{total_converted} }
Subroutine total_converted: called CC=1 SCAR=0.0
77 1 ▶sub total_unconverted { return $_[0]{properties}{total_unconverted} }
Subroutine total_unconverted: called CC=1 SCAR=0.0
78 1 ▶sub url { return $_[0]{properties}{url} }
Subroutine url: called CC=1 SCAR=0.0
79  
80 2 1;
81  
82 __END__
« Twilio/Rest/Taskrouter/V1/Workspace/WorkspaceStatistics.pm ↑ Summary Twilio/Rest/Accounts/V1/AuthTokenPromotion.pm »