Class: Singularity::Configuration
- Inherits:
-
Object
- Object
- Singularity::Configuration
- Defined in:
- lib/singularity/configuration.rb
Instance Attribute Summary collapse
-
#auth_path ⇒ Object
Returns the value of attribute auth_path.
-
#profile_prefix ⇒ Object
Returns the value of attribute profile_prefix.
-
#session_prefix ⇒ Object
Returns the value of attribute session_prefix.
-
#token_prefix ⇒ Object
Returns the value of attribute token_prefix.
-
#warden_user_key ⇒ Object
Returns the value of attribute warden_user_key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #reset ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 |
# File 'lib/singularity/configuration.rb', line 5 def initialize reset end |
Instance Attribute Details
#auth_path ⇒ Object
Returns the value of attribute auth_path.
3 4 5 |
# File 'lib/singularity/configuration.rb', line 3 def auth_path @auth_path end |
#profile_prefix ⇒ Object
Returns the value of attribute profile_prefix.
3 4 5 |
# File 'lib/singularity/configuration.rb', line 3 def profile_prefix @profile_prefix end |
#session_prefix ⇒ Object
Returns the value of attribute session_prefix.
3 4 5 |
# File 'lib/singularity/configuration.rb', line 3 def session_prefix @session_prefix end |
#token_prefix ⇒ Object
Returns the value of attribute token_prefix.
3 4 5 |
# File 'lib/singularity/configuration.rb', line 3 def token_prefix @token_prefix end |
#warden_user_key ⇒ Object
Returns the value of attribute warden_user_key.
3 4 5 |
# File 'lib/singularity/configuration.rb', line 3 def warden_user_key @warden_user_key end |
Instance Method Details
#reset ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/singularity/configuration.rb', line 9 def reset @auth_path = 'http://localhost:9292' @session_prefix = 'rack_session' @profile_prefix = 'profile' @token_prefix = 'singularity_session_token' @warden_user_key = 'warden.user.default.key' end |