Class: Bandwidth::Voice::Conference
- Inherits:
-
Object
- Object
- Bandwidth::Voice::Conference
- Includes:
- XmlVerb
- Defined in:
- lib/bandwidth/voice_lib/bxml/verbs/conference.rb
Overview
The Conference verb is used to add callees to conferences
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 23 24 25 26 27 28 29 |
# File 'lib/bandwidth/voice_lib/bxml/verbs/conference.rb', line 9 def to_bxml(xml) if not call_ids_to_coach.nil? coach_ids = call_ids_to_coach.instance_of?(String) ? call_ids_to_coach : call_ids_to_coach.join(",") else coach_ids = nil end xml.Conference(conference_name, compact_hash({ 'mute' => mute, 'hold' => hold, 'callIdsToCoach' => coach_ids, 'conferenceEventUrl' => conference_event_url, 'conferenceEventMethod' => conference_event_method, 'username' => username, 'password' => password, 'tag' => tag, 'conferenceEventFallbackUrl' => conference_event_fallback_url, 'conferenceEventFallbackMethod' => conference_event_fallback_method, 'fallbackUsername' => fallback_username, 'fallbackPassword' => fallback_password })) end |