Twilio/TwiML/Voice/Prompt.pm

filter: Statementstmt 100% 33 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 13 / 13 Podpod 100% 10 / 10 totaltotal 100% 56 / 56 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Twilio/TwiML/Voice/Play.pm ↑ Summary Twilio/TwiML/Voice/Queue.pm »
1 # Generated by tools/generate.pl from tools/twiml-elements.json. Do not edit this file.
2 package Twilio::TwiML::Voice::Prompt;
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 'attempt' => { name => 'attempt' },
13 'card_type' => { name => 'cardType' },
14 'cardType' => { name => 'cardType' },
15 'error_type' => { name => 'errorType' },
16 'errorType' => { name => 'errorType' },
17 'for' => { name => 'for' },
18 'require_matching_inputs' => { name => 'requireMatchingInputs', boolean => 1 },
19 'requireMatchingInputs' => { name => 'requireMatchingInputs', boolean => 1 },
20 );
21  
22 15 ▶sub attribute_table { return \%ATTRIBUTES }
Subroutine attribute_table: called CC=1 SCAR=0.0
Pod documented
23  
24 7 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
25 7 my ($class, $attributes) = @_;
26 7 return $class->SUPER::new('Prompt', undef, $attributes);
27 }
28  
29 2 ▶sub pause {
Subroutine pause: called CC=1 SCAR=0.0
Pod documented
30 2 my ($self, $attributes) = @_;
31 2 require Twilio::TwiML::Voice::Pause;
32 2 return $self->nest(Twilio::TwiML::Voice::Pause->new($attributes));
33 }
34  
35 2 ▶sub play {
Subroutine play: called CC=1 SCAR=0.0
Pod documented
36 2 my ($self, $url, $attributes) = @_;
37 2 require Twilio::TwiML::Voice::Play;
38 2 return $self->nest(Twilio::TwiML::Voice::Play->new($url, $attributes));
39 }
40  
41 2 ▶sub say {
Subroutine say: called CC=1 SCAR=0.0
Pod documented
42 2 my ($self, $message, $attributes) = @_;
43 2 require Twilio::TwiML::Voice::Say;
44 2 return $self->nest(Twilio::TwiML::Voice::Say->new($message, $attributes));
45 }
46  
47 1 ▶sub set_attempt {
Subroutine set_attempt: called CC=1 SCAR=0.0
Pod documented
48 1 my ($self, $value) = @_;
49 1 return $self->set_attribute('attempt', $value);
50 }
51  
52 1 ▶sub set_card_type {
Subroutine set_card_type: called CC=1 SCAR=0.0
Pod documented
53 1 my ($self, $value) = @_;
54 1 return $self->set_attribute('card_type', $value);
55 }
56  
57 1 ▶sub set_error_type {
Subroutine set_error_type: called CC=1 SCAR=0.0
Pod documented
58 1 my ($self, $value) = @_;
59 1 return $self->set_attribute('error_type', $value);
60 }
61  
62 1 ▶sub set_for {
Subroutine set_for: called CC=1 SCAR=0.0
Pod documented
63 1 my ($self, $value) = @_;
64 1 return $self->set_attribute('for', $value);
65 }
66  
67 1 ▶sub set_require_matching_inputs {
Subroutine set_require_matching_inputs: called CC=1 SCAR=0.0
Pod documented
68 1 my ($self, $value) = @_;
69 1 return $self->set_attribute('require_matching_inputs', $value);
70 }
71  
72 2 1;
73  
74 __END__
« Twilio/TwiML/Voice/Play.pm ↑ Summary Twilio/TwiML/Voice/Queue.pm »