Class: ZeroAuth::Config
- Inherits:
-
Object
- Object
- ZeroAuth::Config
- Defined in:
- lib/zero_auth/config.rb
Overview
Holds configuration values for the ZeroAuth library.
Instance Attribute Summary collapse
-
#password_cost ⇒ Integer
The cost param when generating BCrypt passwords.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
-
#reset! ⇒ Object
Resets the current configuration values to their defaults.
Constructor Details
#initialize ⇒ Config
12 13 14 |
# File 'lib/zero_auth/config.rb', line 12 def initialize reset! end |
Instance Attribute Details
#password_cost ⇒ Integer
10 11 12 |
# File 'lib/zero_auth/config.rb', line 10 def password_cost @password_cost end |
Instance Method Details
#reset! ⇒ Object
Resets the current configuration values to their defaults.
18 19 20 |
# File 'lib/zero_auth/config.rb', line 18 def reset! self.password_cost = 9 end |