Module: IEX::Api::Config

Extended by:
Config
Included in:
Client, Config
Defined in:
lib/iex/api/config.rb

Constant Summary collapse

ATTRIBUTES =
%i[
  proxy
  user_agent
  ca_path
  ca_file
  logger
  timeout
  open_timeout
  endpoint
  publishable_token
].freeze

Instance Method Summary collapse

Instance Method Details

#reset!Object


20
21
22
23
24
25
26
27
28
29
30
# File 'lib/iex/api/config.rb', line 20

def reset!
  self.endpoint = 'https://cloud.iexapis.com/v1'
  self.publishable_token = ENV['IEX_API_PUBLISHABLE_TOKEN']
  self.user_agent = "IEX Ruby Client/#{IEX::VERSION}"
  self.ca_path = defined?(OpenSSL) ? OpenSSL::X509::DEFAULT_CERT_DIR : nil
  self.ca_file = defined?(OpenSSL) ? OpenSSL::X509::DEFAULT_CERT_FILE : nil
  self.proxy = nil
  self.logger = nil
  self.timeout = nil
  self.open_timeout = nil
end