Class: Twilio::TwiML::Body

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

Overview

<Body> TwiML Noun

Instance Attribute Summary

Attributes inherited from TwiML

#indent, #name

Instance Method Summary collapse

Methods inherited from TwiML

#append, to_lower_camel_case, #to_s, #xml

Constructor Details

#initialize(message, **keyword_args) {|_self| ... } ⇒ Body

Returns a new instance of Body.

Yields:

  • (_self)

Yield Parameters:



96
97
98
99
100
101
# File 'lib/twilio-ruby/twiml/messaging_response.rb', line 96

def initialize(message, **keyword_args)
  super(**keyword_args)
  @name = 'Body'
  @value = message
  yield(self) if block_given?
end