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, media_type: nil, page_size: nil, store_media: nil, **keyword_args) ⇒ Object
- 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.
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, media_type: nil, page_size: nil, store_media: nil, **keyword_args) ⇒ Object
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
29 30 31 |
# File 'lib/twilio-ruby/twiml/fax_response.rb', line 29 def receive(action: nil, method: nil, media_type: nil, page_size: nil, store_media: nil, **keyword_args) append(Receive.new(action: action, method: method, media_type: media_type, page_size: page_size, store_media: store_media, **keyword_args)) end |