Twilio/Rest/Studio/V2.pm

filter: Statementstmt 100% 21 / 21 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 3 / 3 totaltotal 100% 32 / 32 CC 2 SCAR 2.5
CC
2
Cov
100%
flows
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Twilio/Rest/Pricing/V1/PhoneNumber.pm ↑ Summary Twilio/Rest/Chat/V1/Service/Role.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Studio::V2;
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 ▶use parent 'Twilio::Version';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 2 our $VERSION = '2.001';
10  
11 19 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
12 19 my ($class, $domain) = @_;
13 19 my $self = $class->SUPER::new($domain);
14 19 $self->{version} = 'v2';
15 19 return $self;
16 }
17  
18 # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client.
19 18 ▶sub flows {
Subroutine flows: called CC=2 SCAR=6.9
Pod documented
20 18 my ($self, $sid) = @_;
21 18 require Twilio::Rest::Studio::V2::Flow;
22 18 my $list = Twilio::Rest::Studio::V2::FlowList->new($self);
23 18 ▶ return defined $sid ? $list->get_context($sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sid ? : 16 2 18
24 }
25  
26 1 ▶sub flow_validate {
Subroutine flow_validate: called CC=1 SCAR=0.0
Pod documented
27 1 my ($self) = @_;
28 1 require Twilio::Rest::Studio::V2::FlowValidate;
29 1 return Twilio::Rest::Studio::V2::FlowValidateList->new($self);
30 }
31  
32 2 1;
33  
34 __END__
« Twilio/Rest/Pricing/V1/PhoneNumber.pm ↑ Summary Twilio/Rest/Chat/V1/Service/Role.pm »