Class: Bandwidth::Bxml::SendDtmf

Inherits:
Verb
  • Object
show all
Defined in:
lib/bandwidth-sdk/models/bxml/verbs/send_dtmf.rb

Instance Method Summary collapse

Methods inherited from Verb

#generate_xml, #set_attributes, #to_bxml

Constructor Details

#initialize(digits, attributes = {}) ⇒ SendDtmf

Initializer

Parameters:

  • digits (String)

    String containing the DTMF characters to be sent in a call. Allows a maximum of 50 characters. The digits will be sent one-by-one with a marginal delay.

  • attributes (Hash) (defaults to: {})

    The attributes to add to the element. Defaults to an empty hash.



7
8
9
10
11
12
13
14
# File 'lib/bandwidth-sdk/models/bxml/verbs/send_dtmf.rb', line 7

def initialize(digits, attributes = {})
  super('SendDtmf', digits, attributes)
  
  @attribute_map = {
    tone_duration: 'toneDuration',  # Optional [Number]: The length (in milliseconds) of each DTMF tone. Default value is 200. Range: decimal values between 50 - 5000.
    tone_interval: 'toneInterval',  # Optional [Number]: The duration of silence (in milliseconds) following each DTMF tone. Default value is 400. Range: decimal values between 50 - 5000.
  }
end