Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations.pm

filter: Statementstmt 100% 22 / 22 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 30 / 30 CC 2 SCAR 2.5
CC
2
Cov
100%
credential_list_mappings
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.3
« Twilio/ListResource.pm ↑ Summary Twilio/Rest/Bulkexports/V1.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Api::V2010::Account::Sip::Domain::AuthTypes::AuthTypeRegistrations;
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 our $VERSION = '2.001';
8  
9 package Twilio::Rest::Api::V2010::Account::Sip::Domain::AuthTypes::AuthTypeRegistrationsList;
10  
11 2 ▶use parent 'Twilio::ListResource';
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 2 ▶use Twilio::Serialize;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 4 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
16 4 my ($class, $version, $account_sid, $domain_sid) = @_;
17 4 my $self = $class->SUPER::new($version);
18 4 $self->{solution} = { account_sid => $account_sid, domain_sid => $domain_sid };
19 4 $self->{uri} = join q{}, '/Accounts/', Twilio::Serialize::path_segment($account_sid),
20 '/SIP/Domains/', Twilio::Serialize::path_segment($domain_sid), '/Auth/Registrations.json';
21 4 return $self;
22 }
23  
24 4 ▶sub credential_list_mappings {
Subroutine credential_list_mappings: called CC=2 SCAR=6.9
25 4 my ($self, $sid) = @_;
26 require
27 4 Twilio::Rest::Api::V2010::Account::Sip::Domain::AuthTypes::AuthTypeRegistrations::AuthRegistrationsCredentialListMapping;
28 my $list =
29 Twilio::Rest::Api::V2010::Account::Sip::Domain::AuthTypes::AuthTypeRegistrations::AuthRegistrationsCredentialListMappingList
30 ->new(
31 $self->{version},
32 $self->{solution}{account_sid},
33 $self->{solution}{domain_sid}
34 4 );
35 4 ▶ return defined $sid ? $list->get_context($sid) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $sid ? : 2 2 4
36 }
37  
38 2 1;
39  
40 __END__
« Twilio/ListResource.pm ↑ Summary Twilio/Rest/Bulkexports/V1.pm »