Class: Twilio::TwiML::FaxResponse

Inherits:
TwiML
  • Object
show all
Defined in:
lib/twilio-ruby/twiml/fax_response.rb

Overview

<Response> TwiML for Faxes

Instance Attribute Summary

Attributes inherited from TwiML

#name

Instance Method Summary collapse

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.

Yields:

  • (_self)

Yield Parameters:



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