Module: MetalpriceAPI::Config
Constant Summary collapse
- ATTRIBUTES =
%i[ endpoint api_key proxy user_agent ca_path ca_file logger timeout open_timeout ].freeze
Instance Method Summary collapse
Instance Method Details
#reset ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/metalpriceapi/config.rb', line 21 def reset self.endpoint = 'https://api.metalpriceapi.com/v1' self.api_key = nil self.user_agent = "MetalpriceAPI Ruby Client/#{MetalpriceAPI::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 |