| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||
| 2 | package Twilio::Rest::Insights::V2; | ||||||||||
| 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 | ▶ | use parent 'Twilio::Version'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 2 | our $VERSION = '2.001'; | |||||||||
| 10 | |||||||||||
| 11 | 6 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 12 | 6 | my ($class, $domain) = @_; | |||||||||
| 13 | 6 | my $self = $class->SUPER::new($domain); | |||||||||
| 14 | 6 | $self->{version} = 'v2'; | |||||||||
| 15 | 6 | return $self; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client. | ||||||||||
| 19 | 1 | ▶ | sub inbound { | ||||||||
|
Subroutine
inbound: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 20 | 1 | my ($self, $report_id) = @_; | |||||||||
| 21 | 1 | require Twilio::Rest::Insights::V2::Inbound; | |||||||||
| 22 | 1 | return Twilio::Rest::Insights::V2::InboundList->new($self, $report_id); | |||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 1 | ▶ | sub inbound_reports { | ||||||||
|
Subroutine
inbound_reports: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 26 | 1 | my ($self) = @_; | |||||||||
| 27 | 1 | require Twilio::Rest::Insights::V2::InboundReport; | |||||||||
| 28 | 1 | return Twilio::Rest::Insights::V2::InboundReportList->new($self); | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | 1 | ▶ | sub outbound { | ||||||||
|
Subroutine
outbound: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 32 | 1 | my ($self, $report_id) = @_; | |||||||||
| 33 | 1 | require Twilio::Rest::Insights::V2::Outbound; | |||||||||
| 34 | 1 | return Twilio::Rest::Insights::V2::OutboundList->new($self, $report_id); | |||||||||
| 35 | } | ||||||||||
| 36 | |||||||||||
| 37 | 1 | ▶ | sub outbound_reports { | ||||||||
|
Subroutine
outbound_reports: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 38 | 1 | my ($self) = @_; | |||||||||
| 39 | 1 | require Twilio::Rest::Insights::V2::OutboundReport; | |||||||||
| 40 | 1 | return Twilio::Rest::Insights::V2::OutboundReportList->new($self); | |||||||||
| 41 | } | ||||||||||
| 42 | |||||||||||
| 43 | 2 | ▶ | sub reports { | ||||||||
|
Subroutine
reports: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 44 | 2 | my ($self, $report_id) = @_; | |||||||||
| 45 | 2 | require Twilio::Rest::Insights::V2::Report; | |||||||||
| 46 | 2 | my $list = Twilio::Rest::Insights::V2::ReportList->new($self); | |||||||||
| 47 | 2 | ▶ | return defined $report_id ? $list->get_context($report_id) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 48 | } | ||||||||||
| 49 | |||||||||||
| 50 | 2 | 1; | |||||||||
| 51 | |||||||||||
| 52 | __END__ | ||||||||||