Twilio/Rest/Webhooks/V1.pm

filter: Statementstmt 100% 40 / 40 Branchbran 100% 10 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 11 / 11 Podpod 100% 8 / 8 totaltotal 100% 69 / 69 CC 6 SCAR 4.9
CC
6
Cov
100%
auth_profiles
2.0
operations
2.0
rules
2.0
CRAP 1.6
« Twilio/Rest/Conversations/V1.pm ↑ Summary Twilio/Rest/Routes/V2.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Webhooks::V1;
3  
4 3 ▶use 5.016;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶use parent 'Twilio::ApiV1Version';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 our $VERSION = '2.001';
10  
11 25 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
12 25 my ($class, $domain) = @_;
13 25 my $self = $class->SUPER::new($domain);
14 25 $self->{version} = 'v1';
15 25 return $self;
16 }
17  
18 # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client.
19 5 ▶sub auth_profiles {
Subroutine auth_profiles: called CC=2 SCAR=6.9
Pod documented
20 5 my ($self, $auth_profile_id) = @_;
21 5 require Twilio::Rest::Webhooks::V1::AuthProfile;
22 5 my $list = Twilio::Rest::Webhooks::V1::AuthProfileList->new($self);
23 5 ▶ return defined $auth_profile_id ? $list->get_context($auth_profile_id) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $auth_profile_id ? : 3 2 5
24 }
25  
26 1 ▶sub edge_zones {
Subroutine edge_zones: called CC=1 SCAR=0.0
Pod documented
27 1 my ($self) = @_;
28 1 require Twilio::Rest::Webhooks::V1::EdgeZone;
29 1 return Twilio::Rest::Webhooks::V1::EdgeZoneList->new($self);
30 }
31  
32 2 ▶sub operations {
Subroutine operations: called CC=2 SCAR=6.9
Pod documented
33 2 my ($self, $operation_id) = @_;
34 2 require Twilio::Rest::Webhooks::V1::Operation;
35 2 my $list = Twilio::Rest::Webhooks::V1::OperationList->new($self);
36 2 ▶ return defined $operation_id ? $list->get_context($operation_id) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $operation_id ? : 1 1 2
37 }
38  
39 6 ▶sub rules {
Subroutine rules: called CC=2 SCAR=6.9
Pod documented
40 6 my ($self, $rule_id) = @_;
41 6 require Twilio::Rest::Webhooks::V1::Rule;
42 6 my $list = Twilio::Rest::Webhooks::V1::RuleList->new($self);
43 6 ▶ return defined $rule_id ? $list->get_context($rule_id) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $rule_id ? : 4 2 6
44 }
45  
46 5 ▶sub settings {
Subroutine settings: called CC=2 SCAR=6.9
Pod documented
47 5 my ($self, $setting_id) = @_;
48 5 require Twilio::Rest::Webhooks::V1::Setting;
49 5 my $list = Twilio::Rest::Webhooks::V1::SettingList->new($self);
50 5 ▶ return defined $setting_id ? $list->get_context($setting_id) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $setting_id ? : 3 2 5
51 }
52  
53 5 ▶sub shared_keys {
Subroutine shared_keys: called CC=2 SCAR=6.9
Pod documented
54 5 my ($self, $shared_key_id) = @_;
55 5 require Twilio::Rest::Webhooks::V1::SharedKey;
56 5 my $list = Twilio::Rest::Webhooks::V1::SharedKeyList->new($self);
57 5 ▶ return defined $shared_key_id ? $list->get_context($shared_key_id) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $shared_key_id ? : 3 2 5
58 }
59  
60 1 ▶sub tests {
Subroutine tests: called CC=1 SCAR=0.0
Pod documented
61 1 my ($self) = @_;
62 1 require Twilio::Rest::Webhooks::V1::Test;
63 1 return Twilio::Rest::Webhooks::V1::TestList->new($self);
64 }
65  
66 3 1;
67  
68 __END__
« Twilio/Rest/Conversations/V1.pm ↑ Summary Twilio/Rest/Routes/V2.pm »