Sha256: 68826a4e8bb93dc806cf97cb674c9d3c6aadaa89567c4cf11bc56a1ff1aaa287
Contents?: true
Size: 518 Bytes
Versions: 4
Compression:
Stored size: 518 Bytes
Contents
# frozen_string_literal: true module TwilioBase module Protocols module Voice module Default module_function def init(params: {}, protocol: nil, to:) protocol ||= ENV.fetch('VOICE_PROTOCOL') klass = { 'pstn' => Protocols::Voice::Pstn, 'sip' => Protocols::Voice::Sip }.fetch(protocol.to_s, Protocols::Voice::Pstn) klass.new( params: params, to: to ) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems