Class: Twilio::TwiML::Headers
- Defined in:
- lib/twilio-ruby/twiml/voice_response.rb
Overview
The SIP headers to include in the request
Instance Attribute Summary
Attributes inherited from TwiML
Instance Method Summary collapse
-
#header(name: nil, value: nil, **keyword_args) ⇒ Object
- Create a new <Header> element name
- The name of the custom header value
- The value of the custom header keyword_args
-
additional attributes.
-
#initialize(**keyword_args) {|_self| ... } ⇒ Headers
constructor
A new instance of Headers.
Methods inherited from TwiML
#add_child, #add_text, #append, #comment, to_lower_camel_case, #to_s, #xml
Constructor Details
#initialize(**keyword_args) {|_self| ... } ⇒ Headers
Returns a new instance of Headers.
1896 1897 1898 1899 1900 1901 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 1896 def initialize(**keyword_args) super(**keyword_args) @name = 'Headers' yield(self) if block_given? end |
Instance Method Details
#header(name: nil, value: nil, **keyword_args) ⇒ Object
Create a new <Header> element
- name
-
The name of the custom header
- value
-
The value of the custom header
- keyword_args
-
additional attributes
1908 1909 1910 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 1908 def header(name: nil, value: nil, **keyword_args) append(Header.new(name: name, value: value, **keyword_args)) end |