Class: Zxcvbn::Feedback
- Inherits:
-
Object
- Object
- Zxcvbn::Feedback
- Defined in:
- lib/zxcvbn/feedback.rb
Instance Attribute Summary collapse
-
#suggestions ⇒ Object
Returns the value of attribute suggestions.
-
#warning ⇒ Object
Returns the value of attribute warning.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Feedback
constructor
A new instance of Feedback.
Constructor Details
#initialize(options = {}) ⇒ Feedback
7 8 9 10 |
# File 'lib/zxcvbn/feedback.rb', line 7 def initialize( = {}) @warning = [:warning] @suggestions = [:suggestions] || [] end |
Instance Attribute Details
#suggestions ⇒ Object
Returns the value of attribute suggestions.
5 6 7 |
# File 'lib/zxcvbn/feedback.rb', line 5 def suggestions @suggestions end |
#warning ⇒ Object
Returns the value of attribute warning.
5 6 7 |
# File 'lib/zxcvbn/feedback.rb', line 5 def warning @warning end |