Twilio/TwiML/Voice/Dial.pm

filter: Statementstmt 100% 78 / 78 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 33 / 33 Podpod 100% 30 / 30 totaltotal 100% 141 / 141 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Twilio/TwiML/Voice/ConversationRelaySession.pm ↑ Summary Twilio/TwiML/Voice/Echo.pm »
1 # Generated by tools/generate.pl from tools/twiml-elements.json. Do not edit this file.
2 package Twilio::TwiML::Voice::Dial;
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 'answer_on_bridge' => { name => 'answerOnBridge', boolean => 1 },
14 'answerOnBridge' => { name => 'answerOnBridge', boolean => 1 },
15 'caller_id' => { name => 'callerId' },
16 'callerId' => { name => 'callerId' },
17 'events' => { name => 'events' },
18 'hangup_on_star' => { name => 'hangupOnStar', boolean => 1 },
19 'hangupOnStar' => { name => 'hangupOnStar', boolean => 1 },
20 'method' => { name => 'method' },
21 'passports' => { name => 'passports' },
22 'record' => { name => 'record' },
23 'recording_configuration_id' => { name => 'recordingConfigurationId' },
24 'recordingConfigurationId' => { name => 'recordingConfigurationId' },
25 'recording_status_callback' => { name => 'recordingStatusCallback' },
26 'recordingStatusCallback' => { name => 'recordingStatusCallback' },
27 'recording_status_callback_event' => { name => 'recordingStatusCallbackEvent' },
28 'recordingStatusCallbackEvent' => { name => 'recordingStatusCallbackEvent' },
29 'recording_status_callback_method' => { name => 'recordingStatusCallbackMethod' },
30 'recordingStatusCallbackMethod' => { name => 'recordingStatusCallbackMethod' },
31 'recording_track' => { name => 'recordingTrack' },
32 'recordingTrack' => { name => 'recordingTrack' },
33 'refer_method' => { name => 'referMethod' },
34 'referMethod' => { name => 'referMethod' },
35 'refer_url' => { name => 'referUrl' },
36 'referUrl' => { name => 'referUrl' },
37 'ring_tone' => { name => 'ringTone' },
38 'ringTone' => { name => 'ringTone' },
39 'sequential' => { name => 'sequential', boolean => 1 },
40 'time_limit' => { name => 'timeLimit' },
41 'timeLimit' => { name => 'timeLimit' },
42 'timeout' => { name => 'timeout' },
43 'trim' => { name => 'trim' },
44 );
45  
46 51 ▶sub attribute_table { return \%ATTRIBUTES }
Subroutine attribute_table: called CC=1 SCAR=0.0
Pod documented
47  
48 12 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
49 12 my ($class, $number, $attributes) = @_;
50 12 return $class->SUPER::new('Dial', $number, $attributes);
51 }
52  
53 2 ▶sub application {
Subroutine application: called CC=1 SCAR=0.0
Pod documented
54 2 my ($self, $application_sid, $attributes) = @_;
55 2 require Twilio::TwiML::Voice::Application;
56 2 return $self->nest(Twilio::TwiML::Voice::Application->new($application_sid, $attributes));
57 }
58  
59 2 ▶sub client {
Subroutine client: called CC=1 SCAR=0.0
Pod documented
60 2 my ($self, $identity, $attributes) = @_;
61 2 require Twilio::TwiML::Voice::Client;
62 2 return $self->nest(Twilio::TwiML::Voice::Client->new($identity, $attributes));
63 }
64  
65 2 ▶sub conference {
Subroutine conference: called CC=1 SCAR=0.0
Pod documented
66 2 my ($self, $name, $attributes) = @_;
67 2 require Twilio::TwiML::Voice::Conference;
68 2 return $self->nest(Twilio::TwiML::Voice::Conference->new($name, $attributes));
69 }
70  
71 3 ▶sub number {
Subroutine number: called CC=1 SCAR=0.0
Pod documented
72 3 my ($self, $phone_number, $attributes) = @_;
73 3 require Twilio::TwiML::Voice::Number;
74 3 return $self->nest(Twilio::TwiML::Voice::Number->new($phone_number, $attributes));
75 }
76  
77 2 ▶sub queue {
Subroutine queue: called CC=1 SCAR=0.0
Pod documented
78 2 my ($self, $name, $attributes) = @_;
79 2 require Twilio::TwiML::Voice::Queue;
80 2 return $self->nest(Twilio::TwiML::Voice::Queue->new($name, $attributes));
81 }
82  
83 2 ▶sub sim {
Subroutine sim: called CC=1 SCAR=0.0
Pod documented
84 2 my ($self, $sim_sid) = @_;
85 2 require Twilio::TwiML::Voice::Sim;
86 2 return $self->nest(Twilio::TwiML::Voice::Sim->new($sim_sid));
87 }
88  
89 2 ▶sub sip {
Subroutine sip: called CC=1 SCAR=0.0
Pod documented
90 2 my ($self, $sip_url, $attributes) = @_;
91 2 require Twilio::TwiML::Voice::Sip;
92 2 return $self->nest(Twilio::TwiML::Voice::Sip->new($sip_url, $attributes));
93 }
94  
95 2 ▶sub whats_app {
Subroutine whats_app: called CC=1 SCAR=0.0
Pod documented
96 2 my ($self, $phone_number, $attributes) = @_;
97 2 require Twilio::TwiML::Voice::WhatsApp;
98 2 return $self->nest(Twilio::TwiML::Voice::WhatsApp->new($phone_number, $attributes));
99 }
100  
101 1 ▶sub set_action {
Subroutine set_action: called CC=1 SCAR=0.0
Pod documented
102 1 my ($self, $value) = @_;
103 1 return $self->set_attribute('action', $value);
104 }
105  
106 1 ▶sub set_answer_on_bridge {
Subroutine set_answer_on_bridge: called CC=1 SCAR=0.0
Pod documented
107 1 my ($self, $value) = @_;
108 1 return $self->set_attribute('answer_on_bridge', $value);
109 }
110  
111 1 ▶sub set_caller_id {
Subroutine set_caller_id: called CC=1 SCAR=0.0
Pod documented
112 1 my ($self, $value) = @_;
113 1 return $self->set_attribute('caller_id', $value);
114 }
115  
116 1 ▶sub set_events {
Subroutine set_events: called CC=1 SCAR=0.0
Pod documented
117 1 my ($self, $value) = @_;
118 1 return $self->set_attribute('events', $value);
119 }
120  
121 1 ▶sub set_hangup_on_star {
Subroutine set_hangup_on_star: called CC=1 SCAR=0.0
Pod documented
122 1 my ($self, $value) = @_;
123 1 return $self->set_attribute('hangup_on_star', $value);
124 }
125  
126 1 ▶sub set_method {
Subroutine set_method: called CC=1 SCAR=0.0
Pod documented
127 1 my ($self, $value) = @_;
128 1 return $self->set_attribute('method', $value);
129 }
130  
131 1 ▶sub set_passports {
Subroutine set_passports: called CC=1 SCAR=0.0
Pod documented
132 1 my ($self, $value) = @_;
133 1 return $self->set_attribute('passports', $value);
134 }
135  
136 1 ▶sub set_record {
Subroutine set_record: called CC=1 SCAR=0.0
Pod documented
137 1 my ($self, $value) = @_;
138 1 return $self->set_attribute('record', $value);
139 }
140  
141 1 ▶sub set_recording_configuration_id {
Subroutine set_recording_configuration_id: called CC=1 SCAR=0.0
Pod documented
142 1 my ($self, $value) = @_;
143 1 return $self->set_attribute('recording_configuration_id', $value);
144 }
145  
146 1 ▶sub set_recording_status_callback {
Subroutine set_recording_status_callback: called CC=1 SCAR=0.0
Pod documented
147 1 my ($self, $value) = @_;
148 1 return $self->set_attribute('recording_status_callback', $value);
149 }
150  
151 1 ▶sub set_recording_status_callback_event {
Subroutine set_recording_status_callback_event: called CC=1 SCAR=0.0
Pod documented
152 1 my ($self, $value) = @_;
153 1 return $self->set_attribute('recording_status_callback_event', $value);
154 }
155  
156 1 ▶sub set_recording_status_callback_method {
Subroutine set_recording_status_callback_method: called CC=1 SCAR=0.0
Pod documented
157 1 my ($self, $value) = @_;
158 1 return $self->set_attribute('recording_status_callback_method', $value);
159 }
160  
161 1 ▶sub set_recording_track {
Subroutine set_recording_track: called CC=1 SCAR=0.0
Pod documented
162 1 my ($self, $value) = @_;
163 1 return $self->set_attribute('recording_track', $value);
164 }
165  
166 1 ▶sub set_refer_method {
Subroutine set_refer_method: called CC=1 SCAR=0.0
Pod documented
167 1 my ($self, $value) = @_;
168 1 return $self->set_attribute('refer_method', $value);
169 }
170  
171 1 ▶sub set_refer_url {
Subroutine set_refer_url: called CC=1 SCAR=0.0
Pod documented
172 1 my ($self, $value) = @_;
173 1 return $self->set_attribute('refer_url', $value);
174 }
175  
176 1 ▶sub set_ring_tone {
Subroutine set_ring_tone: called CC=1 SCAR=0.0
Pod documented
177 1 my ($self, $value) = @_;
178 1 return $self->set_attribute('ring_tone', $value);
179 }
180  
181 1 ▶sub set_sequential {
Subroutine set_sequential: called CC=1 SCAR=0.0
Pod documented
182 1 my ($self, $value) = @_;
183 1 return $self->set_attribute('sequential', $value);
184 }
185  
186 1 ▶sub set_time_limit {
Subroutine set_time_limit: called CC=1 SCAR=0.0
Pod documented
187 1 my ($self, $value) = @_;
188 1 return $self->set_attribute('time_limit', $value);
189 }
190  
191 1 ▶sub set_timeout {
Subroutine set_timeout: called CC=1 SCAR=0.0
Pod documented
192 1 my ($self, $value) = @_;
193 1 return $self->set_attribute('timeout', $value);
194 }
195  
196 1 ▶sub set_trim {
Subroutine set_trim: called CC=1 SCAR=0.0
Pod documented
197 1 my ($self, $value) = @_;
198 1 return $self->set_attribute('trim', $value);
199 }
200  
201 2 1;
202  
203 __END__
« Twilio/TwiML/Voice/ConversationRelaySession.pm ↑ Summary Twilio/TwiML/Voice/Echo.pm »