module CMSScanner::ClassMethods
Module to be able to use these class methods when the CMSScanner
is included in another module
Public Instance Methods
app_name()
click to toggle source
The lowercase name of the scanner Mainly used in directory paths like the default cookie-jar file and path to load the cli options from files
@return [ String ]
# File lib/cms_scanner.rb, line 125 def app_name to_s.underscore end
cached_requests()
click to toggle source
@return [ Integer ]
# File lib/cms_scanner.rb, line 71 def cached_requests @@cached_requests ||= 0 end
cached_requests=(value)
click to toggle source
@param [ Integer ] value
# File lib/cms_scanner.rb, line 76 def cached_requests=(value) @@cached_requests = value end
start_memory()
click to toggle source
@return [ Integer ] The memory at the start of the scan (when Scan.new
), in B
# File lib/cms_scanner.rb, line 111 def start_memory @@start_memory ||= 0 end
start_memory=(value)
click to toggle source
@param [ Integer ] value
# File lib/cms_scanner.rb, line 116 def start_memory=(value) @@start_memory = value end
total_data_received()
click to toggle source
@return [ Integer ]
# File lib/cms_scanner.rb, line 101 def total_data_received @@total_data_received ||= 0 end
total_data_received=(value)
click to toggle source
@param [ Integer ] value
# File lib/cms_scanner.rb, line 106 def total_data_received=(value) @@total_data_received = value end
total_data_sent()
click to toggle source
@return [ Integer ]
# File lib/cms_scanner.rb, line 91 def total_data_sent @@total_data_sent ||= 0 end
total_data_sent=(value)
click to toggle source
@param [ Integer ] value
# File lib/cms_scanner.rb, line 96 def total_data_sent=(value) @@total_data_sent = value end
total_requests()
click to toggle source
@return [ Integer ]
# File lib/cms_scanner.rb, line 81 def total_requests @@total_requests ||= 0 end
total_requests=(value)
click to toggle source
@param [ Integer ] value
# File lib/cms_scanner.rb, line 86 def total_requests=(value) @@total_requests = value end