Class: WPScan::DB::WpItem
- Inherits:
-
Object
- Object
- WPScan::DB::WpItem
- Defined in:
- lib/wpscan/db/wp_item.rb
Overview
WpItem - super DB class for Plugin, Theme and Version
Direct Known Subclasses
Class Method Summary collapse
- .db ⇒ JSON
-
.db_data(identifier) ⇒ Hash
The JSON data from the DB associated to the identifier.
Class Method Details
.db ⇒ JSON
13 14 15 |
# File 'lib/wpscan/db/wp_item.rb', line 13 def self.db @db ||= read_json_file(db_file) end |
.db_data(identifier) ⇒ Hash
Returns The JSON data from the DB associated to the identifier.
8 9 10 |
# File 'lib/wpscan/db/wp_item.rb', line 8 def self.db_data(identifier) db[identifier] || {} end |