Twilio/Rest/Lookups/V2/Query.pm

filter: Statementstmt 100% 33 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod n/a totaltotal 100% 43 / 43 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Twilio/Rest/Lookups.pm ↑ Summary Twilio/Rest/Marketplace.pm »
1 # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file.
2 package Twilio::Rest::Lookups::V2::Query;
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::Lookups::V2::QueryList;
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 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
16 1 my ($class, $version) = @_;
17 1 my $self = $class->SUPER::new($version);
18 1 $self->{solution} = {};
19 1 $self->{uri} = '/batch/query';
20 1 return $self;
21 }
22  
23 1 ▶sub create {
Subroutine create: called CC=1 SCAR=0.0
24 1 my ($self, $body) = @_;
25  
26 1 my $data = Twilio::Serialize::json_body($body, {});
27  
28 my $response = $self->{version}->handle_request(
29 'POST',
30 $self->{uri},
31 1 'create',
32 {
33 data => $data,
34 headers => { 'Content-Type' => 'application/json', }
35 }
36 );
37 1 return Twilio::Rest::Lookups::V2::QueryInstance->new($self->{version}, $response->get_content);
38 }
39  
40 package Twilio::Rest::Lookups::V2::QueryInstance;
41  
42 2 ▶use parent 'Twilio::InstanceResource';
Subroutine BEGIN: called CC=1 SCAR=0.0
43  
44 2 ▶use Twilio::Deserialize;
Subroutine BEGIN: called CC=1 SCAR=0.0
45  
46 1 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
47 1 my ($class, $version, $payload) = @_;
48 1 my $self = $class->SUPER::new($version, $payload);
49 1 $self->{solution} = {};
50 1 return $self;
51 }
52  
53 1 ▶sub phone_numbers { return $_[0]{properties}{phone_numbers} }
Subroutine phone_numbers: called CC=1 SCAR=0.0
54  
55 2 1;
56  
57 __END__
« Twilio/Rest/Lookups.pm ↑ Summary Twilio/Rest/Marketplace.pm »