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
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
15 16 17 |
# File 'lib/wpscan/db/wp_item.rb', line 15 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.
10 11 12 |
# File 'lib/wpscan/db/wp_item.rb', line 10 def self.db_data(identifier) db[identifier] || {} end |