Class: Zxcvbn::Score
- Inherits:
-
Object
- Object
- Zxcvbn::Score
- Defined in:
- lib/zxcvbn/score.rb
Instance Attribute Summary collapse
-
#calc_time ⇒ Object
Returns the value of attribute calc_time.
-
#crack_time ⇒ Object
Returns the value of attribute crack_time.
-
#crack_time_display ⇒ Object
Returns the value of attribute crack_time_display.
-
#entropy ⇒ Object
Returns the value of attribute entropy.
-
#match_sequence ⇒ Object
Returns the value of attribute match_sequence.
-
#password ⇒ Object
Returns the value of attribute password.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#score ⇒ Object
Returns the value of attribute score.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Score
constructor
A new instance of Score.
Constructor Details
#initialize(options = {}) ⇒ Score
Returns a new instance of Score.
6 7 8 9 10 11 12 13 |
# File 'lib/zxcvbn/score.rb', line 6 def initialize( = {}) @entropy = [:entropy] @crack_time = [:crack_time] @crack_time_display = [:crack_time_display] @score = [:score] @match_sequence = [:match_sequence] @password = [:password] end |
Instance Attribute Details
#calc_time ⇒ Object
Returns the value of attribute calc_time.
3 4 5 |
# File 'lib/zxcvbn/score.rb', line 3 def calc_time @calc_time end |
#crack_time ⇒ Object
Returns the value of attribute crack_time.
3 4 5 |
# File 'lib/zxcvbn/score.rb', line 3 def crack_time @crack_time end |
#crack_time_display ⇒ Object
Returns the value of attribute crack_time_display.
3 4 5 |
# File 'lib/zxcvbn/score.rb', line 3 def crack_time_display @crack_time_display end |
#entropy ⇒ Object
Returns the value of attribute entropy.
3 4 5 |
# File 'lib/zxcvbn/score.rb', line 3 def entropy @entropy end |
#match_sequence ⇒ Object
Returns the value of attribute match_sequence.
3 4 5 |
# File 'lib/zxcvbn/score.rb', line 3 def match_sequence @match_sequence end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/zxcvbn/score.rb', line 3 def password @password end |
#pattern ⇒ Object
Returns the value of attribute pattern.
3 4 5 |
# File 'lib/zxcvbn/score.rb', line 3 def pattern @pattern end |
#score ⇒ Object
Returns the value of attribute score.
3 4 5 |
# File 'lib/zxcvbn/score.rb', line 3 def score @score end |