Module: WpVersion::Vulnerable

Included in:
WpVersion
Defined in:
lib/common/models/wp_version/vulnerable.rb

Instance Method Summary collapse

Instance Method Details

#identifierString

Returns:

  • (String)

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

def identifier
  @number
end

#vulns_fileString

Returns The path to the file containing vulnerabilities

Returns:

  • (String)

    The path to the file containing vulnerabilities


7
8
9
10
11
12
# File 'lib/common/models/wp_version/vulnerable.rb', line 7

def vulns_file
  unless @vulns_file
    @vulns_file = WP_VULNS_FILE
  end
  @vulns_file
end