Sha256: 46b49015e253b8f54aaac80811ba5f29e9f8045278ded370bfb36ed0f2bc73a7
Contents?: true
Size: 647 Bytes
Versions: 40
Compression:
Stored size: 647 Bytes
Contents
# frozen_string_literal: true module WPScan module DB # WpItem - super DB class for Plugin, Theme and Version class WpItem # @param [ String ] identifier The plugin/theme slug or version number # # @return [ Hash ] The JSON data from the metadata associated to the identifier def self.metadata_at(identifier) metadata[identifier] || {} end # @return [ JSON ] def self.metadata @metadata ||= read_json_file(metadata_file) end # @return [ String ] def self.metadata_file @metadata_file ||= DB_DIR.join('metadata.json').to_s end end end end
Version data entries
40 entries across 40 versions & 1 rubygems