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:


1062
1063
1064
1065
1066
1067
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 1062

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