Class: Rails::Vault::JWT::Config

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/rails/vault/jwt/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



13
14
15
16
# File 'lib/rails/vault/jwt/config.rb', line 13

def initialize
  @logger = defined?(Rails) && defined?(Rails.logger) ? Rails.logger : Logger.new($stdout)
  @valid_issuers = []
end

Instance Attribute Details

#cacheObject

Returns the value of attribute cache.



10
11
12
# File 'lib/rails/vault/jwt/config.rb', line 10

def cache
  @cache
end

#loggerObject

Returns the value of attribute logger.



10
11
12
# File 'lib/rails/vault/jwt/config.rb', line 10

def logger
  @logger
end

#token_providerObject

Returns the value of attribute token_provider.



11
12
13
# File 'lib/rails/vault/jwt/config.rb', line 11

def token_provider
  @token_provider
end

#valid_issuersObject

Returns the value of attribute valid_issuers.



10
11
12
# File 'lib/rails/vault/jwt/config.rb', line 10

def valid_issuers
  @valid_issuers
end