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
- .metadata ⇒ JSON
-
.metadata_at(identifier) ⇒ Hash
The JSON data from the metadata associated to the identifier.
- .metadata_file ⇒ String
Class Method Details
.metadata ⇒ JSON
15 16 17 |
# File 'lib/wpscan/db/wp_item.rb', line 15 def self. @metadata ||= read_json_file() end |
.metadata_at(identifier) ⇒ Hash
Returns The JSON data from the metadata associated to the identifier.
10 11 12 |
# File 'lib/wpscan/db/wp_item.rb', line 10 def self.(identifier) [identifier] || {} end |
.metadata_file ⇒ String
20 21 22 |
# File 'lib/wpscan/db/wp_item.rb', line 20 def self. @metadata_file ||= DB_DIR.join('metadata.json').to_s end |