Class: Twilio::TwiML::Hangup
- Defined in:
- lib/twilio-ruby/twiml/voice_response.rb
Overview
<Hangup> TwiML Verb
Instance Attribute Summary
Attributes inherited from TwiML
Instance Method Summary collapse
-
#initialize(**keyword_args) {|_self| ... } ⇒ Hangup
constructor
A new instance of Hangup.
-
#parameter(name: nil, value: nil, **keyword_args) ⇒ Object
- Create a new <Parameter> element name
- The name of the custom parameter value
- The value of the custom parameter keyword_args
-
additional attributes.
Methods inherited from TwiML
#add_child, #add_text, #append, #comment, to_lower_camel_case, #to_s, #xml
Constructor Details
#initialize(**keyword_args) {|_self| ... } ⇒ Hangup
Returns a new instance of Hangup.
1526 1527 1528 1529 1530 1531 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 1526 def initialize(**keyword_args) super(**keyword_args) @name = 'Hangup' yield(self) if block_given? end |
Instance Method Details
#parameter(name: nil, value: nil, **keyword_args) ⇒ Object
Create a new <Parameter> element
- name
-
The name of the custom parameter
- value
-
The value of the custom parameter
- keyword_args
-
additional attributes
1538 1539 1540 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 1538 def parameter(name: nil, value: nil, **keyword_args) append(Parameter.new(name: name, value: value, **keyword_args)) end |