Sha256: 0e0f4c2c0d92bf1d089caa84c6bf0aabed60b5d65c54b0beac778627ad27e22f

Contents?: true

Size: 1.24 KB

Versions: 137

Compression:

Stored size: 1.24 KB

Contents

##
# This code was generated by
# \ / _    _  _|   _  _
#  | (_)\/(_)(_|\/| |(/_  v1.0.0
#       /       /
#
# frozen_string_literal: true

module Twilio
  module TwiML
    ##
    # <Response> TwiML for Faxes
    class FaxResponse < TwiML
      def initialize(**keyword_args)
        super(**keyword_args)
        @name = 'Response'

        yield(self) if block_given?
      end

      ##
      # 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
      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
    end

    ##
    # <Receive> TwiML Verb
    class Receive < TwiML
      def initialize(**keyword_args)
        super(**keyword_args)
        @name = 'Receive'

        yield(self) if block_given?
      end
    end
  end
end

Version data entries

137 entries across 137 versions & 2 rubygems

Version Path
twilio-ruby-7.3.6 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-7.3.5 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-7.3.4 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-7.3.3 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-7.3.2 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-7.3.1 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-7.3.0 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-7.2.4 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-7.2.3 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-7.2.2 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-7.2.1 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-7.2.0 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-7.1.1 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-7.0.2 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-7.0.1 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-7.0.0 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-7.0.0.pre.rc.3 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-7.0.0.pre.rc.2 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-6.12.1 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-6.12.0 lib/twilio-ruby/twiml/fax_response.rb