Class: Hibp::Models::Password
- Inherits:
-
Object
- Object
- Hibp::Models::Password
- Includes:
- Helpers::AttributeAssignment
- Defined in:
- lib/hibp/models/password.rb
Overview
Hibp::Models::Password
Represents password by the suffix of and
a count of how many times it appears in the data set
Instance Attribute Summary collapse
-
#occurrences ⇒ Object
Returns the value of attribute occurrences.
-
#suffix ⇒ Object
Returns the value of attribute suffix.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Password
constructor
A new instance of Password.
Constructor Details
#initialize(attributes) ⇒ Password
Returns a new instance of Password.
23 24 25 |
# File 'lib/hibp/models/password.rb', line 23 def initialize(attributes) assign_attributes(attributes) end |
Instance Attribute Details
#occurrences ⇒ Object
Returns the value of attribute occurrences.
13 14 15 |
# File 'lib/hibp/models/password.rb', line 13 def occurrences @occurrences end |
#suffix ⇒ Object
Returns the value of attribute suffix.
13 14 15 |
# File 'lib/hibp/models/password.rb', line 13 def suffix @suffix end |