Sha256: f319eb33163e8e5fe7886025f607d796f76dbd168796b3427f3ea4c322dfb31c

Contents?: true

Size: 391 Bytes

Versions: 13

Compression:

Stored size: 391 Bytes

Contents

module Plivo
  module XML
    class Speak < Element
      @nestables = []
      @valid_attributes = %w[voice language loop]

      def initialize(body, attributes = {})
        if !body
          raise PlivoXMLError, 'No text set for Speak'
        else
          body = HTMLEntities.new(:html4).encode(body, :decimal)
        end
        super(body, attributes)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
plivo-4.3.0 lib/plivo/xml/speak.rb
plivo-4.2.0.pre.beta1 lib/plivo/xml/speak.rb
plivo-4.1.8 lib/plivo/xml/speak.rb
plivo-4.1.7 lib/plivo/xml/speak.rb
plivo-4.1.6 lib/plivo/xml/speak.rb
plivo-4.1.5 lib/plivo/xml/speak.rb
plivo-4.1.4 lib/plivo/xml/speak.rb
plivo-4.1.3 lib/plivo/xml/speak.rb
plivo-4.1.2 lib/plivo/xml/speak.rb
plivo-4.1.1 lib/plivo/xml/speak.rb
plivo-4.1.0 lib/plivo/xml/speak.rb
plivo-4.0.0 lib/plivo/xml/speak.rb
plivo-4.0.0.beta.2 lib/plivo/xml/speak.rb