Sha256: 9ab5fd6ed73c0653fb53c514c6a1cc2b2d58dde463c4da23439bdc98c87757fd

Contents?: true

Size: 263 Bytes

Versions: 2

Compression:

Stored size: 263 Bytes

Contents

module Restcomm
  module RCML
    class Response

      attr_reader :text
      alias_method :to_xml , :text

      def initialize(&block)
        xml = Builder::XmlMarkup.new
        xml.instruct!
        @text = xml.Response &block
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
restcomm-ruby-1.2.1 lib/restcomm-ruby/twiml/response.rb
restcomm-ruby-1.2.0 lib/restcomm-ruby/twiml/response.rb