Twilio/Rest/Events/V1.pm

filter: Statementstmt 100% 30 / 30 Branchbran 87.5% 7 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 5 / 5 totaltotal 98.0% 50 / 51 CC 5 SCAR 5.1
CC
5
Cov
97%
schemas
2.0
event_types
2.0
sinks
2.0
CRAP 1.7
« Twilio/Rest/Supersim/V1.pm ↑ Summary Twilio/Rest/Voice/V1.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Events::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::Version';
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 2 ▶sub event_types {
Subroutine event_types: called CC=2 SCAR=6.9
Pod documented
20 2 my ($self, $type) = @_;
21 2 require Twilio::Rest::Events::V1::EventType;
22 2 my $list = Twilio::Rest::Events::V1::EventTypeList->new($self);
23 2 ▶ return defined $type ? $list->get_context($type) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $type ? : 1 1 2
24 }
25  
26 3 ▶sub schemas {
Subroutine schemas: called CC=2 SCAR=7.0
Pod documented
27 3 my ($self, $id) = @_;
28 3 require Twilio::Rest::Events::V1::Schema;
29 3 my $list = Twilio::Rest::Events::V1::SchemaList->new($self);
30 3 ▶ return defined $id ? $list->get_context($id) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $id ? : 3 0 3
31 }
32  
33 8 ▶sub sinks {
Subroutine sinks: called CC=2 SCAR=6.9
Pod documented
34 8 my ($self, $sid) = @_;
35 8 require Twilio::Rest::Events::V1::Sink;
36 8 my $list = Twilio::Rest::Events::V1::SinkList->new($self);
37 8 ▶ return defined $sid ? $list->get_context($sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sid ? : 6 2 8
38 }
39  
40 12 ▶sub subscriptions {
Subroutine subscriptions: called CC=2 SCAR=6.9
Pod documented
41 12 my ($self, $sid) = @_;
42 12 require Twilio::Rest::Events::V1::Subscription;
43 12 my $list = Twilio::Rest::Events::V1::SubscriptionList->new($self);
44 12 ▶ return defined $sid ? $list->get_context($sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sid ? : 9 3 12
45 }
46  
47 3 1;
48  
49 __END__
« Twilio/Rest/Supersim/V1.pm ↑ Summary Twilio/Rest/Voice/V1.pm »