Class: VoxML::Response
- Inherits:
-
Object
- Object
- VoxML::Response
- Defined in:
- lib/voxml.rb
Defined Under Namespace
Classes: VoxiMarkup
Instance Attribute Summary collapse
-
#text ⇒ Object
(also: #to_xml)
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ Response
constructor
A new instance of Response.
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
#text ⇒ Object (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 |