Sha256: 5f9f6d31840dfc464258d22ce4819878dd11f03e1ac31cff8e3dc8c27bf4474e

Contents?: true

Size: 925 Bytes

Versions: 13

Compression:

Stored size: 925 Bytes

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
      # keyword_args:: additional attributes
      def receive(action: nil, method: nil, **keyword_args)
        append(Receive.new(action: action, method: method, **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

13 entries across 13 versions & 1 rubygems

Version Path
twilio-ruby-5.29.1 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.29.0 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.28.0 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.27.1 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.27.0 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.26.0 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.25.4 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.25.3 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.25.2 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.25.1 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.25.0 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.24.0 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.23.1 lib/twilio-ruby/twiml/fax_response.rb