Class: Hibp::Models::Breach
- Inherits:
-
Object
- Object
- Hibp::Models::Breach
- Includes:
- Helpers::AttributeAssignment
- Defined in:
- lib/hibp/models/breach.rb
Overview
Hibp::Models::Breach
Used to construct a "breach" model
A "breach" is an instance of a system having been compromised by an
attacker and the data disclosed.
For example, Adobe was a breach, Gawker was a breach etc.
A "breach" is an incident where data is inadvertently exposed in a vulnerable system,
usually due to insufficient access controls or security weaknesses in the software.
@see https://haveibeenpwned.com/FAQs
Instance Attribute Summary collapse
-
#added_date ⇒ Object
Returns the value of attribute added_date.
-
#breach_date ⇒ Object
Returns the value of attribute breach_date.
-
#data_classes ⇒ Object
Returns the value of attribute data_classes.
-
#description ⇒ Object
Returns the value of attribute description.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#is_fabricated ⇒ Object
Returns the value of attribute is_fabricated.
-
#is_retired ⇒ Object
Returns the value of attribute is_retired.
-
#is_sensitive ⇒ Object
Returns the value of attribute is_sensitive.
-
#is_spam_list ⇒ Object
Returns the value of attribute is_spam_list.
-
#is_verified ⇒ Object
Returns the value of attribute is_verified.
-
#logo_path ⇒ Object
Returns the value of attribute logo_path.
-
#modified_date ⇒ Object
Returns the value of attribute modified_date.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pwn_count ⇒ Object
Returns the value of attribute pwn_count.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Breach
constructor
A new instance of Breach.
Constructor Details
#initialize(attributes) ⇒ Breach
Returns a new instance of Breach.
106 107 108 |
# File 'lib/hibp/models/breach.rb', line 106 def initialize(attributes) assign_attributes(attributes) end |
Instance Attribute Details
#added_date ⇒ Object
Returns the value of attribute added_date.
22 23 24 |
# File 'lib/hibp/models/breach.rb', line 22 def added_date @added_date end |
#breach_date ⇒ Object
Returns the value of attribute breach_date.
22 23 24 |
# File 'lib/hibp/models/breach.rb', line 22 def breach_date @breach_date end |
#data_classes ⇒ Object
Returns the value of attribute data_classes.
22 23 24 |
# File 'lib/hibp/models/breach.rb', line 22 def data_classes @data_classes end |
#description ⇒ Object
Returns the value of attribute description.
22 23 24 |
# File 'lib/hibp/models/breach.rb', line 22 def description @description end |
#domain ⇒ Object
Returns the value of attribute domain.
22 23 24 |
# File 'lib/hibp/models/breach.rb', line 22 def domain @domain end |
#is_fabricated ⇒ Object
Returns the value of attribute is_fabricated.
22 23 24 |
# File 'lib/hibp/models/breach.rb', line 22 def is_fabricated @is_fabricated end |
#is_retired ⇒ Object
Returns the value of attribute is_retired.
22 23 24 |
# File 'lib/hibp/models/breach.rb', line 22 def is_retired @is_retired end |
#is_sensitive ⇒ Object
Returns the value of attribute is_sensitive.
22 23 24 |
# File 'lib/hibp/models/breach.rb', line 22 def is_sensitive @is_sensitive end |
#is_spam_list ⇒ Object
Returns the value of attribute is_spam_list.
22 23 24 |
# File 'lib/hibp/models/breach.rb', line 22 def is_spam_list @is_spam_list end |
#is_verified ⇒ Object
Returns the value of attribute is_verified.
22 23 24 |
# File 'lib/hibp/models/breach.rb', line 22 def is_verified @is_verified end |
#logo_path ⇒ Object
Returns the value of attribute logo_path.
22 23 24 |
# File 'lib/hibp/models/breach.rb', line 22 def logo_path @logo_path end |
#modified_date ⇒ Object
Returns the value of attribute modified_date.
22 23 24 |
# File 'lib/hibp/models/breach.rb', line 22 def modified_date @modified_date end |
#name ⇒ Object
Returns the value of attribute name.
22 23 24 |
# File 'lib/hibp/models/breach.rb', line 22 def name @name end |
#pwn_count ⇒ Object
Returns the value of attribute pwn_count.
22 23 24 |
# File 'lib/hibp/models/breach.rb', line 22 def pwn_count @pwn_count end |
#title ⇒ Object
Returns the value of attribute title.
22 23 24 |
# File 'lib/hibp/models/breach.rb', line 22 def title @title end |