Sha256: 900846c782d388de7be491ee3fd1fb937e79284f01ffe5888fba56661fa25cf1
Contents?: true
Size: 559 Bytes
Versions: 13
Compression:
Stored size: 559 Bytes
Contents
module WPScan # WordPress Plugin class Plugin < WpItem # See WpItem def initialize(slug, blog, opts = {}) super(slug, blog, opts) @uri = Addressable::URI.parse(blog.url("wp-content/plugins/#{slug}/")) end # @return [ JSON ] def db_data DB::Plugin.db_data(slug) end # @param [ Hash ] opts # # @return [ WPScan::Version, false ] def version(opts = {}) @version = Finders::PluginVersion::Base.find(self, version_detection_opts.merge(opts)) if @version.nil? @version end end end
Version data entries
13 entries across 13 versions & 1 rubygems