class Twilio::TwiML::FaxResponse
<Response> TwiML
for Faxes
Public Class Methods
new(**keyword_args) { |self| ... }
click to toggle source
Calls superclass method
# File lib/twilio-ruby/twiml/fax_response.rb 14 def initialize(**keyword_args) 15 super(**keyword_args) 16 @name = 'Response' 17 18 yield(self) if block_given? 19 end
Public Instance Methods
receive(action: nil, method: nil, media_type: nil, page_size: nil, store_media: nil, **keyword_args)
click to toggle source
Create a new <Receive> element
- action
-
Receive action URL
- method
-
Receive action URL method
- media_type
-
The media type used to store media in the fax media store
- page_size
-
What size to interpret received pages as
- store_media
-
Whether or not to store received media in the fax media store
- keyword_args
-
additional attributes
# File lib/twilio-ruby/twiml/fax_response.rb 29 def receive(action: nil, method: nil, media_type: nil, page_size: nil, store_media: nil, **keyword_args) 30 append(Receive.new(action: action, method: method, media_type: media_type, page_size: page_size, store_media: store_media, **keyword_args)) 31 end