Module: CMSScanner::ClassMethods
- Included in:
- CMSScanner
- Defined in:
- lib/cms_scanner.rb
Overview
Module to be able to use these class methods when the CMSScanner is included in another module
Instance Method Summary collapse
-
#app_name ⇒ String
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.
- #total_requests ⇒ Integer
- #total_requests=(value) ⇒ Object
Instance Method Details
#app_name ⇒ String
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
68 69 70 |
# File 'lib/cms_scanner.rb', line 68 def app_name to_s.underscore end |
#total_requests ⇒ Integer
54 55 56 |
# File 'lib/cms_scanner.rb', line 54 def total_requests @@total_requests ||= 0 end |
#total_requests=(value) ⇒ Object
59 60 61 |
# File 'lib/cms_scanner.rb', line 59 def total_requests=(value) @@total_requests = value end |