Class: Twilio::TwiML::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/twiml/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#textObject (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