Module: Polygon::Api::Config

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

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#reset!Object



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/polygon/api/config.rb', line 22

def reset!
  self.endpoint = 'https://api.polygon.io'
  self.api_key = ENV['POLYGON_API_KEY']
  self.user_agent = "Polygon Ruby Client/#{Polygon::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