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