Module: Iam::AuthorizationProvider::Factory

Defined in:
lib/iam/authorization_provider/factory.rb

Class Method Summary collapse

Class Method Details

.current_providerObject



7
8
9
# File 'lib/iam/authorization_provider/factory.rb', line 7

def current_provider
  provider Iam::Configuration[:authorization_provider]
end

.provider(provider_name) ⇒ Object



11
12
13
# File 'lib/iam/authorization_provider/factory.rb', line 11

def provider(provider_name)
  "Iam::AuthorizationProvider::#{provider_name.camelize}".constantize
end