« Twilio/Rest/FlexApi/V1/InsightsSettingsComment.pm
↑ Summary
Twilio/Rest/Conversations/V1/ParticipantConversation.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||||
| 2 | package Twilio::Rest::Insights::V3::Result; | ||||||||||||
| 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 | our $VERSION = '2.001'; | |||||||||||
| 8 | |||||||||||||
| 9 | package Twilio::Rest::Insights::V3::ResultList; | ||||||||||||
| 10 | |||||||||||||
| 11 | 3 | ▶ | use parent 'Twilio::ListResource'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 12 | |||||||||||||
| 13 | 3 | ▶ | use Twilio::Serialize; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 14 | |||||||||||||
| 15 | 2 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||
| 16 | 2 | my ($class, $version, $operation_id) = @_; | |||||||||||
| 17 | 2 | my $self = $class->SUPER::new($version); | |||||||||||
| 18 | 2 | $self->{solution} = { operation_id => $operation_id }; | |||||||||||
| 19 | 2 | $self->{uri} = join q{}, '/InsightsDomains/Conversations/QueryJobs/', | |||||||||||
| 20 | Twilio::Serialize::path_segment($operation_id), '/Results'; | ||||||||||||
| 21 | 2 | return $self; | |||||||||||
| 22 | } | ||||||||||||
| 23 | |||||||||||||
| 24 | 2 | ▶ | sub fetch { | ||||||||||
|
Subroutine
fetch: called CC=2 SCAR=7.0
| |||||||||||||
| 25 | 2 | my ($self, $options) = @_; | |||||||||||
| 26 | 2 | ▶ | $options //= {}; | ||||||||||
|
Condition50%1/2
$options //= {}
MC/DC0%0/1
$options //= {}
$options
Truth table50%1/2
A
A= $options
| |||||||||||||
| 27 | |||||||||||||
| 28 | my $response = $self->{version}->handle_request( | ||||||||||||
| 29 | 'GET', | ||||||||||||
| 30 | $self->{uri}, | ||||||||||||
| 31 | 'fetch', | ||||||||||||
| 32 | { | ||||||||||||
| 33 | params => { | ||||||||||||
| 34 | pageSize => $options->{page_size}, | ||||||||||||
| 35 | pageToken => $options->{page_token}, | ||||||||||||
| 36 | } | ||||||||||||
| 37 | } | ||||||||||||
| 38 | 2 | ); | |||||||||||
| 39 | return Twilio::Rest::Insights::V3::ResultInstance->new($self->{version}, $response->get_content, | ||||||||||||
| 40 | 2 | $self->{solution}{operation_id}); | |||||||||||
| 41 | } | ||||||||||||
| 42 | |||||||||||||
| 43 | package Twilio::Rest::Insights::V3::ResultInstance; | ||||||||||||
| 44 | |||||||||||||
| 45 | 3 | ▶ | use parent 'Twilio::InstanceResource'; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 46 | |||||||||||||
| 47 | 3 | ▶ | use Twilio::Deserialize; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 48 | |||||||||||||
| 49 | 2 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
| |||||||||||||
| 50 | 2 | my ($class, $version, $payload, $operation_id) = @_; | |||||||||||
| 51 | 2 | my $self = $class->SUPER::new($version, $payload); | |||||||||||
| 52 | 2 | $self->{solution} = { operation_id => $operation_id }; | |||||||||||
| 53 | 2 | return $self; | |||||||||||
| 54 | } | ||||||||||||
| 55 | |||||||||||||
| 56 | 1 | ▶ | sub domain { return $_[0]{properties}{domain} } | ||||||||||
|
Subroutine
domain: called CC=1 SCAR=0.0
| |||||||||||||
| 57 | 1 | ▶ | sub items { return $_[0]{properties}{items} } | ||||||||||
|
Subroutine
items: called CC=1 SCAR=0.0
| |||||||||||||
| 58 | 1 | ▶ | sub meta { return $_[0]{properties}{meta} } | ||||||||||
|
Subroutine
meta: called CC=1 SCAR=0.0
| |||||||||||||
| 59 | |||||||||||||
| 60 | 3 | 1; | |||||||||||
| 61 | |||||||||||||
| 62 | __END__ | ||||||||||||