Class: Bandwidth::Bxml::PlayAudio

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

Instance Method Summary collapse

Methods inherited from Verb

#generate_xml, #set_attributes, #to_bxml

Constructor Details

#initialize(audio_uri, attributes = {}) ⇒ PlayAudio

Initializer

Parameters:

  • audio_uri (String)

    The URL of the audio file to play. May be a relative URL.

  • 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/play_audio.rb', line 7

def initialize(audio_uri, attributes = {})
  super('PlayAudio', audio_uri, attributes)
  
  @attribute_map = {
    username: 'username', # Optional [String]: The username to send in the HTTP request to audio_uri.
    password: 'password', # Optional [String]: The password to send in the HTTP request to audio_uri.
  }
end