Class: PansophyAuthenticator::Configuration::Local

Inherits:
Base
  • Object
show all
Defined in:
lib/pansophy_authenticator/configuration/local.rb

Instance Method Summary collapse

Methods inherited from Base

#remote?, #valid?, #verification

Instance Method Details

#errorsObject



4
5
6
7
8
9
# File 'lib/pansophy_authenticator/configuration/local.rb', line 4

def errors
  errors = super
  return errors + ['File path is not defined'] unless file_path?
  return errors + ["#{@file_path} does not exist"] unless file_exist?
  errors
end

#local?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/pansophy_authenticator/configuration/local.rb', line 11

def local?
  true
end