Twilio/Rest/Preview/Wireless.pm

filter: Statementstmt 100% 26 / 26 Branchbran 100% 6 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 100% 4 / 4 totaltotal 100% 43 / 43 CC 4 SCAR 4.7
CC
4
Cov
100%
commands
2.0
rate_plans
2.0
sims
2.0
CRAP 1.6
« Twilio/Rest/Trusthub/V1.pm ↑ Summary Twilio/Rest/FlexApi/V1.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Preview::Wireless;
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 13 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
12 13 my ($class, $domain) = @_;
13 13 my $self = $class->SUPER::new($domain);
14 13 $self->{version} = 'wireless';
15 13 return $self;
16 }
17  
18 # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client.
19 3 ▶sub commands {
Subroutine commands: called CC=2 SCAR=6.9
Pod documented
20 3 my ($self, $sid) = @_;
21 3 require Twilio::Rest::Preview::Wireless::Command;
22 3 my $list = Twilio::Rest::Preview::Wireless::CommandList->new($self);
23 3 ▶ return defined $sid ? $list->get_context($sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sid ? : 1 2 3
24 }
25  
26 5 ▶sub rate_plans {
Subroutine rate_plans: called CC=2 SCAR=6.9
Pod documented
27 5 my ($self, $sid) = @_;
28 5 require Twilio::Rest::Preview::Wireless::RatePlan;
29 5 my $list = Twilio::Rest::Preview::Wireless::RatePlanList->new($self);
30 5 ▶ return defined $sid ? $list->get_context($sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sid ? : 3 2 5
31 }
32  
33 5 ▶sub sims {
Subroutine sims: called CC=2 SCAR=6.9
Pod documented
34 5 my ($self, $sid) = @_;
35 5 require Twilio::Rest::Preview::Wireless::Sim;
36 5 my $list = Twilio::Rest::Preview::Wireless::SimList->new($self);
37 5 ▶ return defined $sid ? $list->get_context($sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sid ? : 3 2 5
38 }
39  
40 3 1;
41  
42 __END__
« Twilio/Rest/Trusthub/V1.pm ↑ Summary Twilio/Rest/FlexApi/V1.pm »