Twilio/Rest/Memory/V1.pm

filter: Statementstmt 100% 68 / 68 Branchbran 94.4% 17 / 18 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 19 / 19 Podpod 100% 16 / 16 totaltotal 99.1% 120 / 121 CC 10 SCAR 5.0
CC
10
Cov
99%
operations
2.0
conversation_summaries
2.0
data_mappings
2.0
CRAP 1.6
« Twilio/Rest/Api/V2010/Account.pm ↑ Summary Twilio/Rest/Conversations/V1.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Memory::V1;
3  
4 4 ▶use 5.016;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 4 ▶use parent 'Twilio::ApiV1Version';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 4 our $VERSION = '2.001';
10  
11 67 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
12 67 my ($class, $domain) = @_;
13 67 my $self = $class->SUPER::new($domain);
14 67 $self->{version} = 'v1';
15 67 return $self;
16 }
17  
18 # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client.
19 1 ▶sub bulk {
Subroutine bulk: called CC=1 SCAR=0.0
Pod documented
20 1 my ($self, $store_id) = @_;
21 1 require Twilio::Rest::Memory::V1::Bulk;
22 1 return Twilio::Rest::Memory::V1::BulkList->new($self, $store_id);
23 }
24  
25 8 ▶sub conversation_summaries {
Subroutine conversation_summaries: called CC=2 SCAR=6.9
Pod documented
26 8 my ($self, $store_id, $profile_id, $summary_id) = @_;
27 8 require Twilio::Rest::Memory::V1::ConversationSummary;
28 8 my $list = Twilio::Rest::Memory::V1::ConversationSummaryList->new($self, $store_id, $profile_id);
29 8 ▶ return defined $summary_id ? $list->get_context($summary_id) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $summary_id ? : 5 3 8
30 }
31  
32 5 ▶sub data_mappings {
Subroutine data_mappings: called CC=2 SCAR=6.9
Pod documented
33 5 my ($self, $store_id, $data_mapping_id) = @_;
34 5 require Twilio::Rest::Memory::V1::DataMapping;
35 5 my $list = Twilio::Rest::Memory::V1::DataMappingList->new($self, $store_id);
36 5 ▶ return defined $data_mapping_id ? $list->get_context($data_mapping_id) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $data_mapping_id ? : 3 2 5
37 }
38  
39 9 ▶sub identifiers {
Subroutine identifiers: called CC=2 SCAR=6.9
Pod documented
40 9 my ($self, $store_id, $profile_id, $id_type) = @_;
41 9 require Twilio::Rest::Memory::V1::Identifier;
42 9 my $list = Twilio::Rest::Memory::V1::IdentifierList->new($self, $store_id, $profile_id);
43 9 ▶ return defined $id_type ? $list->get_context($id_type) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $id_type ? : 6 3 9
44 }
45  
46 2 ▶sub identity_resolution_settings {
Subroutine identity_resolution_settings: called CC=1 SCAR=0.0
Pod documented
47 2 my ($self, $store_id) = @_;
48 2 require Twilio::Rest::Memory::V1::IdentityResolutionSetting;
49 2 return Twilio::Rest::Memory::V1::IdentityResolutionSettingList->new($self, $store_id);
50 }
51  
52 3 ▶sub imports {
Subroutine imports: called CC=2 SCAR=6.9
Pod documented
53 3 my ($self, $store_id, $import_id) = @_;
54 3 require Twilio::Rest::Memory::V1::Import;
55 3 my $list = Twilio::Rest::Memory::V1::ImportList->new($self, $store_id);
56 3 ▶ return defined $import_id ? $list->get_context($import_id) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $import_id ? : 1 2 3
57 }
58  
59 1 ▶sub lookup {
Subroutine lookup: called CC=1 SCAR=0.0
Pod documented
60 1 my ($self, $store_id) = @_;
61 1 require Twilio::Rest::Memory::V1::Lookup;
62 1 return Twilio::Rest::Memory::V1::LookupList->new($self, $store_id);
63 }
64  
65 8 ▶sub observations {
Subroutine observations: called CC=2 SCAR=6.9
Pod documented
66 8 my ($self, $store_id, $profile_id, $observation_id) = @_;
67 8 require Twilio::Rest::Memory::V1::Observation;
68 8 my $list = Twilio::Rest::Memory::V1::ObservationList->new($self, $store_id, $profile_id);
69 8 ▶ return defined $observation_id ? $list->get_context($observation_id) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $observation_id ? : 5 3 8
70 }
71  
72 1 ▶sub operations {
Subroutine operations: called CC=2 SCAR=7.0
Pod documented
73 1 my ($self, $operation_id) = @_;
74 1 require Twilio::Rest::Memory::V1::Operation;
75 1 my $list = Twilio::Rest::Memory::V1::OperationList->new($self);
76 1 ▶ return defined $operation_id ? $list->get_context($operation_id) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $operation_id ? : 1 0 1
77 }
78  
79 9 ▶sub profiles {
Subroutine profiles: called CC=2 SCAR=6.9
Pod documented
80 9 my ($self, $store_id, $profile_id) = @_;
81 9 require Twilio::Rest::Memory::V1::Profile;
82 9 my $list = Twilio::Rest::Memory::V1::ProfileList->new($self, $store_id);
83 9 ▶ return defined $profile_id ? $list->get_context($profile_id) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $profile_id ? : 7 2 9
84 }
85  
86 5 ▶sub recall {
Subroutine recall: called CC=1 SCAR=0.0
Pod documented
87 5 my ($self, $store_id, $profile_id) = @_;
88 5 require Twilio::Rest::Memory::V1::Recall;
89 5 return Twilio::Rest::Memory::V1::RecallList->new($self, $store_id, $profile_id);
90 }
91  
92 1 ▶sub revisions {
Subroutine revisions: called CC=1 SCAR=0.0
Pod documented
93 1 my ($self, $store_id, $profile_id, $observation_id) = @_;
94 1 require Twilio::Rest::Memory::V1::Revision;
95 1 return Twilio::Rest::Memory::V1::RevisionList->new($self, $store_id, $profile_id,
96 $observation_id);
97 }
98  
99 7 ▶sub stores {
Subroutine stores: called CC=2 SCAR=6.9
Pod documented
100 7 my ($self, $store_id) = @_;
101 7 require Twilio::Rest::Memory::V1::Store;
102 7 my $list = Twilio::Rest::Memory::V1::StoreList->new($self);
103 7 ▶ return defined $store_id ? $list->get_context($store_id) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $store_id ? : 3 4 7
104 }
105  
106 1 ▶sub traits {
Subroutine traits: called CC=1 SCAR=0.0
Pod documented
107 1 my ($self, $store_id, $profile_id) = @_;
108 1 require Twilio::Rest::Memory::V1::Trait;
109 1 return Twilio::Rest::Memory::V1::TraitList->new($self, $store_id, $profile_id);
110 }
111  
112 6 ▶sub trait_groups {
Subroutine trait_groups: called CC=2 SCAR=6.9
Pod documented
113 6 my ($self, $store_id, $trait_group_name) = @_;
114 6 require Twilio::Rest::Memory::V1::TraitGroup;
115 6 my $list = Twilio::Rest::Memory::V1::TraitGroupList->new($self, $store_id);
116 6 ▶ return defined $trait_group_name ? $list->get_context($trait_group_name) : $list;
Branch: 1 branch
BranchTrueFalseTotal
defined $trait_group_name ? : 3 3 6
117 }
118  
119 4 1;
120  
121 __END__
« Twilio/Rest/Api/V2010/Account.pm ↑ Summary Twilio/Rest/Conversations/V1.pm »