Twilio/Rest/Oauth/V1.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 3 / 3 totaltotal 100% 29 / 29 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Twilio/Rest/Oauth.pm ↑ Summary Twilio/Rest/Oauth/V2.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Oauth::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 3 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
12 3 my ($class, $domain) = @_;
13 3 my $self = $class->SUPER::new($domain);
14 3 $self->{version} = 'v1';
15 3 return $self;
16 }
17  
18 # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client.
19 1 ▶sub authorize {
Subroutine authorize: called CC=1 SCAR=0.0
Pod documented
20 1 my ($self) = @_;
21 1 require Twilio::Rest::Oauth::V1::Authorize;
22 1 return Twilio::Rest::Oauth::V1::AuthorizeList->new($self);
23 }
24  
25 2 ▶sub token {
Subroutine token: called CC=1 SCAR=0.0
Pod documented
26 2 my ($self) = @_;
27 2 require Twilio::Rest::Oauth::V1::Token;
28 2 return Twilio::Rest::Oauth::V1::TokenList->new($self);
29 }
30  
31 3 1;
32  
33 __END__
« Twilio/Rest/Oauth.pm ↑ Summary Twilio/Rest/Oauth/V2.pm »