Class: Zxcvbn::Feedback

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Feedback



7
8
9
10
# File 'lib/zxcvbn/feedback.rb', line 7

def initialize(options = {})
  @warning     = options[:warning]
  @suggestions = options[:suggestions] || []
end

Instance Attribute Details

#suggestionsObject

Returns the value of attribute suggestions.



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

def suggestions
  @suggestions
end

#warningObject

Returns the value of attribute warning.



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

def warning
  @warning
end