Sha256: ce68186e775c79b6e0c9a4a8ab76e845edf509708e65402631505c400205cbb0

Contents?: true

Size: 1.01 KB

Versions: 29

Compression:

Stored size: 1.01 KB

Contents

require_relative 'xml_verb'

module Bandwidth 
  module Voice 
    # The Conference verb is used to add callees to conferences 
    class Conference
      include XmlVerb

      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
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
bandwidth-sdk-10.5.0 lib/bandwidth/voice_lib/bxml/verbs/conference.rb
bandwidth-sdk-10.4.0 lib/bandwidth/voice_lib/bxml/verbs/conference.rb
bandwidth-sdk-10.3.0 lib/bandwidth/voice_lib/bxml/verbs/conference.rb
bandwidth-sdk-10.2.0 lib/bandwidth/voice_lib/bxml/verbs/conference.rb
bandwidth-sdk-10.1.0 lib/bandwidth/voice_lib/bxml/verbs/conference.rb
bandwidth-sdk-10.0.0 lib/bandwidth/voice_lib/bxml/verbs/conference.rb
bandwidth-sdk-9.4.1 lib/bandwidth/voice_lib/bxml/verbs/conference.rb
bandwidth-sdk-9.4.0 lib/bandwidth/voice_lib/bxml/verbs/conference.rb
bandwidth-sdk-9.3.0 lib/bandwidth/voice_lib/bxml/verbs/conference.rb
bandwidth-sdk-9.2.0 lib/bandwidth/voice_lib/bxml/verbs/conference.rb
bandwidth-sdk-9.1.2 lib/bandwidth/voice_lib/bxml/verbs/conference.rb
bandwidth-sdk-9.1.1 lib/bandwidth/voice_lib/bxml/verbs/conference.rb
bandwidth-sdk-9.1.0 lib/bandwidth/voice_lib/bxml/verbs/conference.rb
bandwidth-sdk-9.0.0 lib/bandwidth/voice_lib/bxml/verbs/conference.rb
bandwidth-sdk-8.0.0 lib/bandwidth/voice_lib/bxml/verbs/conference.rb
bandwidth-sdk-7.1.0 lib/bandwidth/voice_lib/bxml/verbs/conference.rb
bandwidth-sdk-7.0.0 lib/bandwidth/voice_lib/bxml/verbs/conference.rb
bandwidth-sdk-6.2.0 lib/bandwidth/voice_lib/bxml/verbs/conference.rb
bandwidth-sdk-6.1.0 lib/bandwidth/voice_lib/bxml/verbs/conference.rb
bandwidth-sdk-6.0.0 lib/bandwidth/voice_lib/bxml/verbs/conference.rb