« Twilio/Rest/Events/V1/Schema.pm
↑ Summary
Twilio/Rest/Api/V2010/Account/Sip/Domain/AuthTypes/AuthTypeRegistrations.pm »
| 1 | package Twilio::ListResource; | ||||||||||
| 2 | |||||||||||
| 3 | 18 | ▶ | use 5.016; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 18 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 18 | our $VERSION = '2.001'; | |||||||||
| 7 | |||||||||||
| 8 | 3148 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 9 | 3148 | my ($class, $version) = @_; | |||||||||
| 10 | 3148 | return bless { version => $version, solution => {}, uri => undef }, $class; | |||||||||
| 11 | } | ||||||||||
| 12 | |||||||||||
| 13 | 33 | ▶ | sub read_records { | ||||||||
|
Subroutine
read_records: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 14 | 33 | my ($self, $options, $limit, $page_size) = @_; | |||||||||
| 15 | |||||||||||
| 16 | 33 | my $stream = $self->stream_records($options, $limit, $page_size); | |||||||||
| 17 | 32 | my @records; | |||||||||
| 18 | 32 | ▶ | while (my $item = $stream->next) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 19 | 28 | push @records, $item; | |||||||||
| 20 | } | ||||||||||
| 21 | 32 | return @records; | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | 38 | ▶ | sub stream_records { | ||||||||
|
Subroutine
stream_records: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 25 | 38 | my ($self, $options, $limit, $page_size) = @_; | |||||||||
| 26 | |||||||||||
| 27 | 38 | my $version = $self->{version}; | |||||||||
| 28 | 38 | my $limits = $version->read_limits($limit, $page_size); | |||||||||
| 29 | 38 | my $page = $self->page($options, $limits->{page_size}); | |||||||||
| 30 | 37 | return $version->stream($page, $limits->{limit}, $limits->{page_limit}); | |||||||||
| 31 | } | ||||||||||
| 32 | |||||||||||
| 33 | 12 | ▶ | sub with_metadata { | ||||||||
|
Subroutine
with_metadata: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 34 | 12 | my ($self, $operation, @arguments) = @_; | |||||||||
| 35 | 12 | require Twilio::Metadata; | |||||||||
| 36 | 12 | return Twilio::Metadata->capture($self, $operation, @arguments); | |||||||||
| 37 | } | ||||||||||
| 38 | |||||||||||
| 39 | 18 | 1; | |||||||||
| 40 | |||||||||||
| 41 | __END__ | ||||||||||