Class: WpVersion

Inherits:
WpItem show all
Extended by:
Findable
Includes:
Output, Vulnerable
Defined in:
lib/common/models/wp_version.rb,
lib/common/models/wp_version/output.rb,
lib/common/models/wp_version/findable.rb,
lib/common/models/wp_version/vulnerable.rb

Defined Under Namespace

Modules: Findable, Output, Vulnerable

Instance Attribute Summary collapse

Attributes inherited from WpItem

#found_from, #name, #path, #version, #wp_content_dir, #wp_plugins_dir

Attributes included from WpItem::Vulnerable

#identifier, #vulns_file

Instance Method Summary collapse

Methods included from Findable

find, version_pattern

Methods included from Output

#output

Methods included from Vulnerable

#identifier, #vulns_file

Methods inherited from WpItem

#<=>, #===, #forge_uri, #initialize, #uri, #url

Methods included from WpItem::Output

#output

Methods included from WpItem::Infos

#changelog_url, #error_log_url, #has_changelog?, #has_directory_listing?, #has_error_log?, #has_readme?, #readme_url, #url_is_200?

Methods included from WpItem::Existable

#exists?

Methods included from WpItem::Vulnerable

#vulnerabilities, #vulnerable?, #vulnerable_to?

Methods included from WpItem::Versionable

#to_s, #version

Constructor Details

This class inherits a constructor from WpItem

Instance Attribute Details

#numberObject

The version number


14
15
16
# File 'lib/common/models/wp_version.rb', line 14

def number
  @number
end

Instance Method Details

#==(other) ⇒ Boolean


22
23
24
# File 'lib/common/models/wp_version.rb', line 22

def ==(other)
  number == other.number
end

#allowed_optionsArray


17
# File 'lib/common/models/wp_version.rb', line 17

def allowed_options; super << :number << :found_from end