lib/oneaccess/configuration.rb in oneaccess-1.2.0 vs lib/oneaccess/configuration.rb in oneaccess-1.3.0
- old
+ new
@@ -1,14 +1,14 @@
# frozen_string_literal: true
-require "logger"
+require 'logger'
module ONEAccess
class Configuration
- DEFAULT_BASE_URL = "http://ws.oneaccess.io"
- DEFAULT_BASE_V1_1_PATH = "/v1.1"
- DEFAULT_BASE_V3_0_PATH = "/v3.0"
+ DEFAULT_BASE_URL = 'http://ws.oneaccess.io'
+ DEFAULT_BASE_V1_1_PATH = '/v1.1'
+ DEFAULT_BASE_V3_0_PATH = '/v3.0'
class << self
attr_accessor :base_url
attr_accessor :api_key
attr_accessor :master_api_key
@@ -22,11 +22,11 @@
def base_v3_0_url
"#{base_url}#{DEFAULT_BASE_V3_0_PATH}"
end
def reset!
- self.base_url = DEFAULT_BASE_URL
- self.api_key = nil
+ self.base_url = DEFAULT_BASE_URL
+ self.api_key = nil
self.master_api_key = nil
end
def logger
@logger ||= Logger.new(STDOUT)