NAME
Twilio::TwiML::Voice::Prompt - The Prompt element of TwiML
SYNOPSIS
my $element = Twilio::TwiML::Voice::Prompt->new(\%attributes);
DESCRIPTION
See Twilio::TwiML::TwiML for the methods every element has.
METHODS
new
my $element = Twilio::TwiML::Voice::Prompt->new(\%attributes);
attribute_table
Used by Twilio::TwiML::TwiML.
pause
my $child = $element->pause(\%attributes);
Add Pause child. Returns a Twilio::TwiML::Voice::Pause.
play
my $child = $element->play($url, \%attributes);
Add Play child. Returns a Twilio::TwiML::Voice::Play.
say
my $child = $element->say($message, \%attributes);
Add Say child. Returns a Twilio::TwiML::Voice::Say.
ATTRIBUTES
Each name works in \%attributes, and as a set_ method that returns the element.
attempt-
Current attempt count An array reference.
card_type-
Type of the credit card An array reference.
error_type-
Type of error An array reference.
for-
Name of the payment source data element
require_matching_inputs-
Require customer to input requested information twice and verify matching. True or false.
set_attempt
set_card_type
set_error_type
set_for
set_require_matching_inputs
Set the attribute of the same name.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.