Class: Bandwidth::Voice::Record

Inherits:
Object
  • Object
show all
Includes:
XmlVerb
Defined in:
lib/bandwidth/voice_lib/bxml/verbs/record.rb

Overview

The Record verb is used to trigger call recording

Instance Method Summary collapse

Methods included from XmlVerb

#compact_hash, #initialize, #method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Bandwidth::Voice::XmlVerb

Instance Method Details

#to_bxml(xml) ⇒ Object



9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/bandwidth/voice_lib/bxml/verbs/record.rb', line 9

def to_bxml(xml)
  xml.Record(compact_hash({
   'tag' => tag,
   'username' => username,
   'password' => password,
   'recordCompleteUrl' => record_complete_url,
   'recordCompleteMethod' => record_complete_method,
   'recordingAvailableUrl' => recording_available_url,
   'recordingAvailableMethod' => recording_available_method,
   'terminatingDigits' => terminating_digits,
   'maxDuration' => max_duration,
   'fileFormat' => file_format
  }))
end