module Authenticator::Client

Constants

VERSION

Public Class Methods

authenticate_with!(account) click to toggle source
# File lib/authenticator/client.rb, line 35
def self.authenticate_with!(account)
  @@stubbed_account = account
end
configs() click to toggle source
# File lib/authenticator/client.rb, line 27
def self.configs
  @@configs
end
new(key) click to toggle source
# File lib/authenticator/client.rb, line 18
def self.new(key)
  if @@stubbed_account
    Mock.new(@@stubbed_account)
  else
    Base.new(@@configs[key], @@stubbed_account)
  end
end
register_config(key, config) click to toggle source
# File lib/authenticator/client.rb, line 14
def self.register_config(key, config)
  @@configs[key] = config
end
reset!() click to toggle source
# File lib/authenticator/client.rb, line 31
def self.reset!
  @@stubbed_account = nil
end