Twilio/TwiML/Voice/Enqueue.pm

filter: Statementstmt 100% 29 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 12 / 12 Podpod 100% 9 / 9 totaltotal 100% 50 / 50 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Twilio/TwiML/Voice/Echo.pm ↑ Summary Twilio/TwiML/Voice/Gather.pm »
1 # Generated by tools/generate.pl from tools/twiml-elements.json. Do not edit this file.
2 package Twilio::TwiML::Voice::Enqueue;
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 'max_queue_size' => { name => 'maxQueueSize' },
14 'maxQueueSize' => { name => 'maxQueueSize' },
15 'method' => { name => 'method' },
16 'wait_url' => { name => 'waitUrl' },
17 'waitUrl' => { name => 'waitUrl' },
18 'wait_url_method' => { name => 'waitUrlMethod' },
19 'waitUrlMethod' => { name => 'waitUrlMethod' },
20 'workflow_sid' => { name => 'workflowSid' },
21 'workflowSid' => { name => 'workflowSid' },
22 );
23  
24 14 ▶sub attribute_table { return \%ATTRIBUTES }
Subroutine attribute_table: called CC=1 SCAR=0.0
Pod documented
25  
26 4 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
27 4 my ($class, $name, $attributes) = @_;
28 4 return $class->SUPER::new('Enqueue', $name, $attributes);
29 }
30  
31 2 ▶sub task {
Subroutine task: called CC=1 SCAR=0.0
Pod documented
32 2 my ($self, $body, $attributes) = @_;
33 2 require Twilio::TwiML::Voice::Task;
34 2 return $self->nest(Twilio::TwiML::Voice::Task->new($body, $attributes));
35 }
36  
37 1 ▶sub set_action {
Subroutine set_action: called CC=1 SCAR=0.0
Pod documented
38 1 my ($self, $value) = @_;
39 1 return $self->set_attribute('action', $value);
40 }
41  
42 1 ▶sub set_max_queue_size {
Subroutine set_max_queue_size: called CC=1 SCAR=0.0
Pod documented
43 1 my ($self, $value) = @_;
44 1 return $self->set_attribute('max_queue_size', $value);
45 }
46  
47 1 ▶sub set_method {
Subroutine set_method: called CC=1 SCAR=0.0
Pod documented
48 1 my ($self, $value) = @_;
49 1 return $self->set_attribute('method', $value);
50 }
51  
52 1 ▶sub set_wait_url {
Subroutine set_wait_url: called CC=1 SCAR=0.0
Pod documented
53 1 my ($self, $value) = @_;
54 1 return $self->set_attribute('wait_url', $value);
55 }
56  
57 1 ▶sub set_wait_url_method {
Subroutine set_wait_url_method: called CC=1 SCAR=0.0
Pod documented
58 1 my ($self, $value) = @_;
59 1 return $self->set_attribute('wait_url_method', $value);
60 }
61  
62 1 ▶sub set_workflow_sid {
Subroutine set_workflow_sid: called CC=1 SCAR=0.0
Pod documented
63 1 my ($self, $value) = @_;
64 1 return $self->set_attribute('workflow_sid', $value);
65 }
66  
67 2 1;
68  
69 __END__
« Twilio/TwiML/Voice/Echo.pm ↑ Summary Twilio/TwiML/Voice/Gather.pm »