| 1 | # Generated by tools/generate.pl from tools/twiml-elements.json. Do not edit this file. | ||
| 2 | package Twilio::TwiML::Voice::Refer; | ||
| 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::TwiML::TwiML'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 2 | our $VERSION = '2.001'; | |
| 10 | |||
| 11 | 2 | my %ATTRIBUTES = ( | |
| 12 | 'action' => { name => 'action' }, | ||
| 13 | 'method' => { name => 'method' }, | ||
| 14 | ); | ||
| 15 | |||
| 16 | 6 | ▶ | sub attribute_table { return \%ATTRIBUTES } |
|
Subroutine
attribute_table: called CC=1 SCAR=0.0
Pod
documented
| |||
| 17 | |||
| 18 | 4 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 19 | 4 | my ($class, $attributes) = @_; | |
| 20 | 4 | return $class->SUPER::new('Refer', undef, $attributes); | |
| 21 | } | ||
| 22 | |||
| 23 | 2 | ▶ | sub sip { |
|
Subroutine
sip: called CC=1 SCAR=0.0
Pod
documented
| |||
| 24 | 2 | my ($self, $sip_url) = @_; | |
| 25 | 2 | require Twilio::TwiML::Voice::ReferSip; | |
| 26 | 2 | return $self->nest(Twilio::TwiML::Voice::ReferSip->new($sip_url)); | |
| 27 | } | ||
| 28 | |||
| 29 | 1 | ▶ | sub set_action { |
|
Subroutine
set_action: called CC=1 SCAR=0.0
Pod
documented
| |||
| 30 | 1 | my ($self, $value) = @_; | |
| 31 | 1 | return $self->set_attribute('action', $value); | |
| 32 | } | ||
| 33 | |||
| 34 | 1 | ▶ | sub set_method { |
|
Subroutine
set_method: called CC=1 SCAR=0.0
Pod
documented
| |||
| 35 | 1 | my ($self, $value) = @_; | |
| 36 | 1 | return $self->set_attribute('method', $value); | |
| 37 | } | ||
| 38 | |||
| 39 | 2 | 1; | |
| 40 | |||
| 41 | __END__ | ||