Class: Twilio::TwiML::FaxResponse
- Defined in:
- lib/twilio-ruby/twiml/fax_response.rb
Overview
<Response> TwiML for Faxes
Instance Attribute Summary
Attributes inherited from TwiML
Instance Method Summary collapse
-
#initialize(**keyword_args) {|_self| ... } ⇒ FaxResponse
constructor
A new instance of FaxResponse.
-
#receive(action: nil, method: nil, **keyword_args) ⇒ Object
- Create a new <Receive> element action
- Receive action URL method
- Receive action URL method 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| ... } ⇒ FaxResponse
Returns a new instance of FaxResponse.
14 15 16 17 18 19 |
# File 'lib/twilio-ruby/twiml/fax_response.rb', line 14 def initialize(**keyword_args) super(**keyword_args) @name = 'Response' yield(self) if block_given? end |
Instance Method Details
#receive(action: nil, method: nil, **keyword_args) ⇒ Object
Create a new <Receive> element
- action
-
Receive action URL
- method
-
Receive action URL method
- keyword_args
-
additional attributes
26 27 28 |
# File 'lib/twilio-ruby/twiml/fax_response.rb', line 26 def receive(action: nil, method: nil, **keyword_args) append(Receive.new(action: action, method: method, **keyword_args)) end |