Sha256: 618261e9153b4c6855809d95c8f5fd3bfe1e3eae38b8bbe9892da3cd959e7a4c

Contents?: true

Size: 690 Bytes

Versions: 37

Compression:

Stored size: 690 Bytes

Contents

module Twilio
  module Util
    class ClientConfig
      DEFAULTS = {
          host: 'api.twilio.com',
          port: 443,
          use_ssl: true,
          ssl_verify_peer: true,
          ssl_ca_file: File.dirname(__FILE__) + '/../../../conf/cacert.pem',
          timeout: 30,
          proxy_addr: nil,
          proxy_port: nil,
          proxy_user: nil,
          proxy_pass: nil,
          retry_limit: 1
      }

      DEFAULTS.each_key do |attribute|
        attr_accessor attribute
      end

      def initialize(opts={})
        DEFAULTS.each do |attribute, value|
          send("#{attribute}=".to_sym, opts.fetch(attribute, value))
        end
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
twilio-ruby-4.13.0 lib/twilio-ruby/util/client_config.rb
twilio-ruby-4.12.1 lib/twilio-ruby/util/client_config.rb
twilio-ruby-5.0.0.rc10 lib/twilio-ruby/util/client_config.rb
twilio-ruby-5.0.0.rc9 lib/twilio-ruby/util/client_config.rb
twilio-ruby-5.0.0.rc8 lib/twilio-ruby/util/client_config.rb
twilio-ruby-5.0.0.rc7 lib/twilio-ruby/util/client_config.rb
twilio-ruby-5.0.0.rc5 lib/twilio-ruby/util/client_config.rb
twilio-ruby-5.0.0.rc4 lib/twilio-ruby/util/client_config.rb
twilio-ruby-5.0.0.rc3 lib/twilio-ruby/util/client_config.rb
twilio-ruby-4.11.1 lib/twilio-ruby/util/client_config.rb
twilio-ruby-4.11.0 lib/twilio-ruby/util/client_config.rb
twilio-ruby-5.0.0.rc2 lib/twilio-ruby/util/client_config.rb
twilio-ruby-4.10.0.edge lib/twilio-ruby/util/client_config.rb
twilio-ruby-4.10.0 lib/twilio-ruby/util/client_config.rb
twilio-ruby-4.9.1 lib/twilio-ruby/util/client_config.rb
twilio-ruby-4.9.1.edge lib/twilio-ruby/util/client_config.rb
twilio-ruby-4.9.0 lib/twilio-ruby/util/client_config.rb
twilio-ruby-4.9.0.edge lib/twilio-ruby/util/client_config.rb
twilio-ruby-4.8.0 lib/twilio-ruby/util/client_config.rb
twilio-ruby-4.7.0 lib/twilio-ruby/util/client_config.rb