Sha256: 7632dd37876c78380b3fcf6b56dd41e2cf5f1a1e30ad4acfa9caaf56ca24e6b6

Contents?: true

Size: 650 Bytes

Versions: 1

Compression:

Stored size: 650 Bytes

Contents

module ApiAuthenticator
  @@logger = nil

  def self.configure
    yield self
  end

  def self.shared_secret_keys=(shared_secret_keys)
    @@shared_secret_keys = shared_secret_keys
  end

  def self.shared_secret_keys
    @@shared_secret_keys
  end

  def self.time_threshold=(time_threshold)
    @@time_threshold = time_threshold
  end

  def self.time_threshold
    @@time_threshold
  end

  def self.report_unauthenticated_requests=(report)
    @@report_unauthenticated_requests = report || false
  end

  def self.logger=(logger)
    @@logger = logger || Logger.new($stdout)
  end

  def self.logger
    @@logger || Logger.new($stdout)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
api_authenticator-0.2.1 lib/api_authenticator/configuration.rb