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.
1892 1893 1894 1895 1896 1897 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 1892 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
1904 1905 1906 |
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 1904 def header(name: nil, value: nil, **keyword_args) append(Header.new(name: name, value: value, **keyword_args)) end |