Class: Twilio::TwiML::Number

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

Overview

<Number> TwiML Noun

Instance Attribute Summary

Attributes inherited from TwiML

#name

Instance Method Summary collapse

Methods inherited from TwiML

#add_child, #add_text, #append, #comment, to_lower_camel_case, #to_s, #xml

Constructor Details

#initialize(phone_number, **keyword_args) {|_self| ... } ⇒ Number

Returns a new instance of Number.

Yields:

  • (_self)

Yield Parameters:



1741
1742
1743
1744
1745
1746
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 1741

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