Class: KnockOnce::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



9
10
11
12
13
# File 'lib/knock_once.rb', line 9

def initialize
  @user_params = :user, :email, :current_password, :password, :password_confirmation
  @password_token_expiry = 1.hour.from_now
  @reset_token_length = 18
end

Instance Attribute Details

#password_token_expiryObject

Returns the value of attribute password_token_expiry.



6
7
8
# File 'lib/knock_once.rb', line 6

def password_token_expiry
  @password_token_expiry
end

#reset_token_lengthObject

Returns the value of attribute reset_token_length.



7
8
9
# File 'lib/knock_once.rb', line 7

def reset_token_length
  @reset_token_length
end

#user_paramsObject

Returns the value of attribute user_params.



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

def user_params
  @user_params
end