Class: ApiAuthenticationGem::Configuration
- Inherits:
-
Object
- Object
- ApiAuthenticationGem::Configuration
- Defined in:
- lib/api_authentication_gem/configuration.rb
Instance Attribute Summary collapse
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#user_class ⇒ Object
Returns the value of attribute user_class.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 |
# File 'lib/api_authentication_gem/configuration.rb', line 5 def initialize @secret_key = ENV["API_AUTH_SECRET_KEY"] || "your-default-secret-key" @user_class = "User" # Default to 'User' model end |
Instance Attribute Details
#secret_key ⇒ Object
Returns the value of attribute secret_key.
3 4 5 |
# File 'lib/api_authentication_gem/configuration.rb', line 3 def secret_key @secret_key end |
#user_class ⇒ Object
Returns the value of attribute user_class.
3 4 5 |
# File 'lib/api_authentication_gem/configuration.rb', line 3 def user_class @user_class end |