Sha256: a7f8297abf206f67ca83a8b96b73554f1b6dd0ee083997e3656357803bcf23fd

Contents?: true

Size: 926 Bytes

Versions: 37

Compression:

Stored size: 926 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

37 entries across 37 versions & 1 rubygems

Version Path
twilio-ruby-5.23.0 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.22.3 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.22.2 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.22.1 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.22.0 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.21.2 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.21.1 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.21.0 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.20.1 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.20.0 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.19.0 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.18.0 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.17.0 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.16.0 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.15.2 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.15.1 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.15.0 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.14.1 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.14.0 lib/twilio-ruby/twiml/fax_response.rb
twilio-ruby-5.13.0 lib/twilio-ruby/twiml/fax_response.rb