Module: Authenticator::Client

Defined in:
lib/authenticator/client.rb,
lib/authenticator/client/base.rb,
lib/authenticator/client/mock.rb,
lib/authenticator/client/account.rb,
lib/authenticator/client/version.rb,
lib/authenticator/client/authenticate_response.rb

Defined Under Namespace

Classes: Account, AuthenticateResponse, Base, Mock, MockResponse

Constant Summary collapse

VERSION =
"0.0.4"
@@configs =
{}
@@stubbed_account =
nil

Class Method Summary collapse

Class Method Details

.authenticate_with!(account) ⇒ Object



35
36
37
# File 'lib/authenticator/client.rb', line 35

def self.authenticate_with!()
   = 
end

.configsObject



27
28
29
# File 'lib/authenticator/client.rb', line 27

def self.configs
  @@configs
end

.new(key) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/authenticator/client.rb', line 18

def self.new(key)
  if 
    Mock.new()
  else
    Base.new(@@configs[key], )
  end
end

.register_config(key, config) ⇒ Object



14
15
16
# File 'lib/authenticator/client.rb', line 14

def self.register_config(key, config)
  @@configs[key] = config
end

.reset!Object



31
32
33
# File 'lib/authenticator/client.rb', line 31

def self.reset!
   = nil
end