Sha256: 314fd402aa5beb3baeb74001e17dc60784f4051057483e2a474772347bbcf762

Contents?: true

Size: 802 Bytes

Versions: 29

Compression:

Stored size: 802 Bytes

Contents

require_relative 'xml_verb'

module Bandwidth 
  module Voice 
    class PhoneNumber
      include XmlVerb
      def to_bxml(xml)
        xml.PhoneNumber(number, compact_hash({
          'transferAnswerUrl' => transfer_answer_url,
          'transferAnswerMethod' => transfer_answer_method,
          'transferDisconnectUrl' => transfer_disconnect_url,
          'transferDisconnectMethod' => transfer_disconnect_method,
          'username' => username,
          'password' => password,
          'tag' => tag,
          'transferAnswerFallbackUrl' => transfer_answer_fallback_url,
          'transferAnswerFallbackMethod' => transfer_answer_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/phone_number.rb
bandwidth-sdk-10.4.0 lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb
bandwidth-sdk-10.3.0 lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb
bandwidth-sdk-10.2.0 lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb
bandwidth-sdk-10.1.0 lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb
bandwidth-sdk-10.0.0 lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb
bandwidth-sdk-9.4.1 lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb
bandwidth-sdk-9.4.0 lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb
bandwidth-sdk-9.3.0 lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb
bandwidth-sdk-9.2.0 lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb
bandwidth-sdk-9.1.2 lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb
bandwidth-sdk-9.1.1 lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb
bandwidth-sdk-9.1.0 lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb
bandwidth-sdk-9.0.0 lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb
bandwidth-sdk-8.0.0 lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb
bandwidth-sdk-7.1.0 lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb
bandwidth-sdk-7.0.0 lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb
bandwidth-sdk-6.2.0 lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb
bandwidth-sdk-6.1.0 lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb
bandwidth-sdk-6.0.0 lib/bandwidth/voice_lib/bxml/verbs/phone_number.rb