Module: Usps::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/usps/config.rb

Constant Summary collapse

ATTRIBUTES =
%i[
  proxy
  user_agent
  ca_path
  ca_file
  logger
  endpoint
  user_id
  token
  timeout
  open_timeout
  default_page_size
  default_max_retries
].freeze

Instance Method Summary collapse

Instance Method Details

#resetObject



23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/usps/config.rb', line 23

def reset
  self.endpoint = 'https://secure.shippingapis.com/'
  self.user_agent = "USPS Ruby Client/#{Usps::VERSION}"
  self.ca_path = defined?(OpenSSL) ? OpenSSL::X509::DEFAULT_CERT_DIR : nil
  self.ca_file = defined?(OpenSSL) ? OpenSSL::X509::DEFAULT_CERT_FILE : nil
  self.user_id = nil
  self.token = nil
  self.proxy = nil
  self.logger = nil
  self.timeout = nil
  self.open_timeout = nil
  self.default_page_size = 100
  self.default_max_retries = 100
end