Class: Twilio::TwiML::Response
- Inherits:
-
Object
- Object
- Twilio::TwiML::Response
- Defined in:
- lib/twilio-ruby/twiml/response.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
(also: #to_xml)
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(&block) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(&block) ⇒ Response
Returns a new instance of Response.
8 9 10 11 12 |
# File 'lib/twilio-ruby/twiml/response.rb', line 8 def initialize(&block) xml = Builder::XmlMarkup.new xml.instruct! @text = xml.Response &block end |
Instance Attribute Details
#text ⇒ Object (readonly) Also known as: to_xml
Returns the value of attribute text.
5 6 7 |
# File 'lib/twilio-ruby/twiml/response.rb', line 5 def text @text end |