Class: TwilioLookups::Util::ClientConfig
- Inherits:
-
Object
- Object
- TwilioLookups::Util::ClientConfig
- Defined in:
- lib/twilio-lookups/util/client_config.rb
Constant Summary collapse
- 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 }
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ ClientConfig
constructor
A new instance of ClientConfig.
Constructor Details
#initialize(opts = {}) ⇒ ClientConfig
Returns a new instance of ClientConfig.
22 23 24 25 26 |
# File 'lib/twilio-lookups/util/client_config.rb', line 22 def initialize(opts={}) DEFAULTS.each do |attribute, value| send("#{attribute}=".to_sym, opts.fetch(attribute, value)) end end |