Twilio/TwiML/Voice/Refer.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 5 / 5 totaltotal 100% 34 / 34 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Twilio/TwiML/Voice/Redirect.pm ↑ Summary Twilio/TwiML/Voice/ReferSip.pm »
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__
« Twilio/TwiML/Voice/Redirect.pm ↑ Summary Twilio/TwiML/Voice/ReferSip.pm »