Class: VoxML::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/voxml.rb

Defined Under Namespace

Classes: VoxiMarkup

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args, &block) ⇒ Response

Returns a new instance of Response.



38
39
40
41
42
# File 'lib/voxml.rb', line 38

def initialize(*args, &block)
  xml = VoxiMarkup.new(indent: 2)
  xml.instruct!
  @text = xml.Response(Hash[*args], &block)
end

Instance Attribute Details

#textObject (readonly) Also known as: to_xml

Returns the value of attribute text.



35
36
37
# File 'lib/voxml.rb', line 35

def text
  @text
end