« Twilio/Rest/Numbers/V1/PortingPortInPhoneNumber.pm
↑ Summary
Twilio/Rest/Messaging/V1/LinkshorteningMessagingServiceDomainAssociation.pm »
| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||
| 2 | package Twilio::Rest::Intelligence::V2::OperatorAttachments; | ||
| 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::Intelligence::V2::OperatorAttachmentsContext; | ||
| 10 | |||
| 11 | 2 | ▶ | use parent 'Twilio::InstanceContext'; |
|
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, $service_sid) = @_; | |
| 17 | 1 | my $self = $class->SUPER::new($version); | |
| 18 | 1 | $self->{solution} = { service_sid => $service_sid }; | |
| 19 | 1 | $self->{uri} = join q{}, '/Services/', Twilio::Serialize::path_segment($service_sid), | |
| 20 | '/Operators'; | ||
| 21 | 1 | return $self; | |
| 22 | } | ||
| 23 | |||
| 24 | 1 | ▶ | sub fetch { |
|
Subroutine
fetch: called CC=1 SCAR=0.0
| |||
| 25 | 1 | my ($self) = @_; | |
| 26 | |||
| 27 | 1 | my $response = $self->{version}->handle_request('GET', $self->{uri}, 'fetch'); | |
| 28 | 1 | return $self->_build_instance($response); | |
| 29 | } | ||
| 30 | |||
| 31 | 1 | ▶ | sub _build_instance { |
|
Subroutine
_build_instance: called CC=1 SCAR=0.0
| |||
| 32 | 1 | my ($self, $response) = @_; | |
| 33 | return Twilio::Rest::Intelligence::V2::OperatorAttachmentsInstance->new($self->{version}, | ||
| 34 | 1 | $response->get_content, $self->{solution}{service_sid}); | |
| 35 | } | ||
| 36 | |||
| 37 | package Twilio::Rest::Intelligence::V2::OperatorAttachmentsInstance; | ||
| 38 | |||
| 39 | 2 | ▶ | use parent 'Twilio::InstanceResource'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 40 | |||
| 41 | 2 | ▶ | use Twilio::Deserialize; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 42 | |||
| 43 | 1 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
| |||
| 44 | 1 | my ($class, $version, $payload, $service_sid) = @_; | |
| 45 | 1 | my $self = $class->SUPER::new($version, $payload); | |
| 46 | 1 | $self->{solution} = { service_sid => $service_sid }; | |
| 47 | 1 | return $self; | |
| 48 | } | ||
| 49 | |||
| 50 | 0 | ▶ | sub fetch { |
|
Subroutine
fetch: not called CC=1 SCAR=6.9
| |||
| 51 | 0 | my ($self, @arguments) = @_; | |
| 52 | 0 | return $self->_context->fetch(@arguments); | |
| 53 | } | ||
| 54 | |||
| 55 | 0 | ▶ | sub _context { |
|
Subroutine
_context: not called CC=1 SCAR=6.9
| |||
| 56 | 0 | my ($self) = @_; | |
| 57 | return Twilio::Rest::Intelligence::V2::OperatorAttachmentsContext->new($self->{version}, | ||
| 58 | 0 | $self->{solution}{service_sid}); | |
| 59 | } | ||
| 60 | |||
| 61 | 1 | ▶ | sub operator_sids { return $_[0]{properties}{operator_sids} } |
|
Subroutine
operator_sids: called CC=1 SCAR=0.0
| |||
| 62 | 1 | ▶ | sub service_sid { return $_[0]{properties}{service_sid} } |
|
Subroutine
service_sid: called CC=1 SCAR=0.0
| |||
| 63 | 1 | ▶ | sub url { return $_[0]{properties}{url} } |
|
Subroutine
url: called CC=1 SCAR=0.0
| |||
| 64 | |||
| 65 | 2 | 1; | |
| 66 | |||
| 67 | __END__ | ||