class Hibp::Models::Password

Hibp::Models::Password

Represents password by the suffix of and
a count of how many times it appears in the data set

Attributes

occurrences[RW]
suffix[RW]

Public Class Methods

new(attributes) click to toggle source

@param attributes [Hash]

@option attributes [String] :suffix -

Password suffix(password hash without first five symbols)

@option attributes [Integer] :occurrences -

Count of how many times suffix appears in the data set
# File lib/hibp/models/password.rb, line 23
def initialize(attributes)
  assign_attributes(attributes)
end