Class: Utilities::Kb

Inherits:
Object
  • Object
show all
Defined in:
lib/fingerprinter/utilities/kb.rb

Overview

Files : Utilities related to files

Class Method Summary collapse

Class Method Details

.coverage_id(plugin, url) ⇒ Object



6
7
8
# File 'lib/fingerprinter/utilities/kb.rb', line 6

def self.coverage_id(plugin, url)
  "#{plugin}:#{url}"
end

.inspected(plugin, url) ⇒ Object



10
11
12
# File 'lib/fingerprinter/utilities/kb.rb', line 10

def self.inspected(plugin, url)
  Fingerprinter::Technologies.kb[:inspected] << coverage_id(plugin, url)
end

.inspected?(plugin, url) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/fingerprinter/utilities/kb.rb', line 14

def self.inspected?(plugin, url)
  Fingerprinter::Technologies.kb[:inspected].include?(coverage_id(plugin, url))
end