Class: ZeroAuth::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/zero_auth/config.rb

Overview

Holds configuration values for the ZeroAuth library.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig



12
13
14
# File 'lib/zero_auth/config.rb', line 12

def initialize
  reset!
end

Instance Attribute Details

#password_costInteger



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