Class: Singularity::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/singularity/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
# File 'lib/singularity/configuration.rb', line 5

def initialize
  reset
end

Instance Attribute Details

#auth_pathObject

Returns the value of attribute auth_path.



3
4
5
# File 'lib/singularity/configuration.rb', line 3

def auth_path
  @auth_path
end

#profile_prefixObject

Returns the value of attribute profile_prefix.



3
4
5
# File 'lib/singularity/configuration.rb', line 3

def profile_prefix
  @profile_prefix
end

#session_prefixObject

Returns the value of attribute session_prefix.



3
4
5
# File 'lib/singularity/configuration.rb', line 3

def session_prefix
  @session_prefix
end

#token_prefixObject

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_keyObject

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

#resetObject



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