Twilio/Rest/Wireless/V1.pm

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