Twilio/TwiML/VoiceResponse.pm

filter: Statementstmt 100% 72 / 72 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 24 / 24 Podpod 100% 21 / 21 totaltotal 100% 117 / 117 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Twilio/TwiML/Voice/WhatsApp.pm ↑ Summary
1 # Generated by tools/generate.pl from tools/twiml-elements.json. Do not edit this file.
2 package Twilio::TwiML::VoiceResponse;
3  
4 3 ▶use 5.016;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 ▶use parent 'Twilio::TwiML::TwiML';
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 3 our $VERSION = '2.001';
10  
11 16 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
12 16 my ($class) = @_;
13 16 return $class->SUPER::new('Response', undef);
14 }
15  
16 2 ▶sub connect {
Subroutine connect: called CC=1 SCAR=0.0
Pod documented
17 2 my ($self, $attributes) = @_;
18 2 require Twilio::TwiML::Voice::Connect;
19 2 return $self->nest(Twilio::TwiML::Voice::Connect->new($attributes));
20 }
21  
22 10 ▶sub dial {
Subroutine dial: called CC=1 SCAR=0.0
Pod documented
23 10 my ($self, $number, $attributes) = @_;
24 10 require Twilio::TwiML::Voice::Dial;
25 10 return $self->nest(Twilio::TwiML::Voice::Dial->new($number, $attributes));
26 }
27  
28 3 ▶sub echo {
Subroutine echo: called CC=1 SCAR=0.0
Pod documented
29 3 my ($self) = @_;
30 3 require Twilio::TwiML::Voice::Echo;
31 3 return $self->nest(Twilio::TwiML::Voice::Echo->new());
32 }
33  
34 2 ▶sub enqueue {
Subroutine enqueue: called CC=1 SCAR=0.0
Pod documented
35 2 my ($self, $name, $attributes) = @_;
36 2 require Twilio::TwiML::Voice::Enqueue;
37 2 return $self->nest(Twilio::TwiML::Voice::Enqueue->new($name, $attributes));
38 }
39  
40 4 ▶sub gather {
Subroutine gather: called CC=1 SCAR=0.0
Pod documented
41 4 my ($self, $attributes) = @_;
42 4 require Twilio::TwiML::Voice::Gather;
43 4 return $self->nest(Twilio::TwiML::Voice::Gather->new($attributes));
44 }
45  
46 2 ▶sub hangup {
Subroutine hangup: called CC=1 SCAR=0.0
Pod documented
47 2 my ($self) = @_;
48 2 require Twilio::TwiML::Voice::Hangup;
49 2 return $self->nest(Twilio::TwiML::Voice::Hangup->new());
50 }
51  
52 2 ▶sub leave {
Subroutine leave: called CC=1 SCAR=0.0
Pod documented
53 2 my ($self) = @_;
54 2 require Twilio::TwiML::Voice::Leave;
55 2 return $self->nest(Twilio::TwiML::Voice::Leave->new());
56 }
57  
58 2 ▶sub pause {
Subroutine pause: called CC=1 SCAR=0.0
Pod documented
59 2 my ($self, $attributes) = @_;
60 2 require Twilio::TwiML::Voice::Pause;
61 2 return $self->nest(Twilio::TwiML::Voice::Pause->new($attributes));
62 }
63  
64 3 ▶sub pay {
Subroutine pay: called CC=1 SCAR=0.0
Pod documented
65 3 my ($self, $attributes) = @_;
66 3 require Twilio::TwiML::Voice::Pay;
67 3 return $self->nest(Twilio::TwiML::Voice::Pay->new($attributes));
68 }
69  
70 2 ▶sub play {
Subroutine play: called CC=1 SCAR=0.0
Pod documented
71 2 my ($self, $url, $attributes) = @_;
72 2 require Twilio::TwiML::Voice::Play;
73 2 return $self->nest(Twilio::TwiML::Voice::Play->new($url, $attributes));
74 }
75  
76 2 ▶sub prompt {
Subroutine prompt: called CC=1 SCAR=0.0
Pod documented
77 2 my ($self, $attributes) = @_;
78 2 require Twilio::TwiML::Voice::Prompt;
79 2 return $self->nest(Twilio::TwiML::Voice::Prompt->new($attributes));
80 }
81  
82 2 ▶sub queue {
Subroutine queue: called CC=1 SCAR=0.0
Pod documented
83 2 my ($self, $name, $attributes) = @_;
84 2 require Twilio::TwiML::Voice::Queue;
85 2 return $self->nest(Twilio::TwiML::Voice::Queue->new($name, $attributes));
86 }
87  
88 2 ▶sub record { ## no critic (ProhibitAmbiguousNames)
Subroutine record: called CC=1 SCAR=0.0
Pod documented
89 2 my ($self, $attributes) = @_;
90 2 require Twilio::TwiML::Voice::Record;
91 2 return $self->nest(Twilio::TwiML::Voice::Record->new($attributes));
92 }
93  
94 3 ▶sub redirect {
Subroutine redirect: called CC=1 SCAR=0.0
Pod documented
95 3 my ($self, $url, $attributes) = @_;
96 3 require Twilio::TwiML::Voice::Redirect;
97 3 return $self->nest(Twilio::TwiML::Voice::Redirect->new($url, $attributes));
98 }
99  
100 2 ▶sub refer {
Subroutine refer: called CC=1 SCAR=0.0
Pod documented
101 2 my ($self, $attributes) = @_;
102 2 require Twilio::TwiML::Voice::Refer;
103 2 return $self->nest(Twilio::TwiML::Voice::Refer->new($attributes));
104 }
105  
106 2 ▶sub reject {
Subroutine reject: called CC=1 SCAR=0.0
Pod documented
107 2 my ($self, $attributes) = @_;
108 2 require Twilio::TwiML::Voice::Reject;
109 2 return $self->nest(Twilio::TwiML::Voice::Reject->new($attributes));
110 }
111  
112 8 ▶sub say {
Subroutine say: called CC=1 SCAR=0.0
Pod documented
113 8 my ($self, $message, $attributes) = @_;
114 8 require Twilio::TwiML::Voice::Say;
115 8 return $self->nest(Twilio::TwiML::Voice::Say->new($message, $attributes));
116 }
117  
118 2 ▶sub sms {
Subroutine sms: called CC=1 SCAR=0.0
Pod documented
119 2 my ($self, $message, $attributes) = @_;
120 2 require Twilio::TwiML::Voice::Sms;
121 2 return $self->nest(Twilio::TwiML::Voice::Sms->new($message, $attributes));
122 }
123  
124 2 ▶sub start {
Subroutine start: called CC=1 SCAR=0.0
Pod documented
125 2 my ($self, $attributes) = @_;
126 2 require Twilio::TwiML::Voice::Start;
127 2 return $self->nest(Twilio::TwiML::Voice::Start->new($attributes));
128 }
129  
130 2 ▶sub stop {
Subroutine stop: called CC=1 SCAR=0.0
Pod documented
131 2 my ($self) = @_;
132 2 require Twilio::TwiML::Voice::Stop;
133 2 return $self->nest(Twilio::TwiML::Voice::Stop->new());
134 }
135  
136 3 1;
137  
138 __END__
« Twilio/TwiML/Voice/WhatsApp.pm ↑ Summary