Twilio/TwiML/Voice/Connect.pm

filter: Statementstmt 100% 42 / 42 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 15 / 15 Podpod 100% 12 / 12 totaltotal 100% 69 / 69 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Twilio/TwiML/Voice/Config.pm ↑ Summary Twilio/TwiML/Voice/Conversation.pm »
1 # Generated by tools/generate.pl from tools/twiml-elements.json. Do not edit this file.
2 package Twilio::TwiML::Voice::Connect;
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('Connect', undef, $attributes);
21 }
22  
23 2 ▶sub ai_session {
Subroutine ai_session: called CC=1 SCAR=0.0
Pod documented
24 2 my ($self, $attributes) = @_;
25 2 require Twilio::TwiML::Voice::AiSession;
26 2 return $self->nest(Twilio::TwiML::Voice::AiSession->new($attributes));
27 }
28  
29 2 ▶sub autopilot {
Subroutine autopilot: called CC=1 SCAR=0.0
Pod documented
30 2 my ($self, $name) = @_;
31 2 require Twilio::TwiML::Voice::Autopilot;
32 2 return $self->nest(Twilio::TwiML::Voice::Autopilot->new($name));
33 }
34  
35 2 ▶sub conversation {
Subroutine conversation: called CC=1 SCAR=0.0
Pod documented
36 2 my ($self, $attributes) = @_;
37 2 require Twilio::TwiML::Voice::Conversation;
38 2 return $self->nest(Twilio::TwiML::Voice::Conversation->new($attributes));
39 }
40  
41 2 ▶sub conversation_relay {
Subroutine conversation_relay: called CC=1 SCAR=0.0
Pod documented
42 2 my ($self, $attributes) = @_;
43 2 require Twilio::TwiML::Voice::ConversationRelay;
44 2 return $self->nest(Twilio::TwiML::Voice::ConversationRelay->new($attributes));
45 }
46  
47 2 ▶sub conversation_relay_session {
Subroutine conversation_relay_session: called CC=1 SCAR=0.0
Pod documented
48 2 my ($self, $attributes) = @_;
49 2 require Twilio::TwiML::Voice::ConversationRelaySession;
50 2 return $self->nest(Twilio::TwiML::Voice::ConversationRelaySession->new($attributes));
51 }
52  
53 2 ▶sub room {
Subroutine room: called CC=1 SCAR=0.0
Pod documented
54 2 my ($self, $name, $attributes) = @_;
55 2 require Twilio::TwiML::Voice::Room;
56 2 return $self->nest(Twilio::TwiML::Voice::Room->new($name, $attributes));
57 }
58  
59 2 ▶sub stream {
Subroutine stream: called CC=1 SCAR=0.0
Pod documented
60 2 my ($self, $attributes) = @_;
61 2 require Twilio::TwiML::Voice::Stream;
62 2 return $self->nest(Twilio::TwiML::Voice::Stream->new($attributes));
63 }
64  
65 2 ▶sub virtual_agent {
Subroutine virtual_agent: called CC=1 SCAR=0.0
Pod documented
66 2 my ($self, $attributes) = @_;
67 2 require Twilio::TwiML::Voice::VirtualAgent;
68 2 return $self->nest(Twilio::TwiML::Voice::VirtualAgent->new($attributes));
69 }
70  
71 1 ▶sub set_action {
Subroutine set_action: called CC=1 SCAR=0.0
Pod documented
72 1 my ($self, $value) = @_;
73 1 return $self->set_attribute('action', $value);
74 }
75  
76 1 ▶sub set_method {
Subroutine set_method: called CC=1 SCAR=0.0
Pod documented
77 1 my ($self, $value) = @_;
78 1 return $self->set_attribute('method', $value);
79 }
80  
81 2 1;
82  
83 __END__
« Twilio/TwiML/Voice/Config.pm ↑ Summary Twilio/TwiML/Voice/Conversation.pm »