Class: Qualys::Scans
Constant Summary
Constants inherited from Api
Class Method Summary collapse
Methods inherited from Api
Class Method Details
.all ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/qualys/scans.rb', line 4 def self.all response = api_get("scan/", { :query => { :action => 'list' }} ) unless response.parsed_response['SCAN_LIST_OUTPUT']['RESPONSE'].has_key? 'SCAN_LIST' return [] end scanlist = response.parsed_response['SCAN_LIST_OUTPUT']['RESPONSE']['SCAN_LIST']['SCAN'] scanlist.map!{|scan| Scan.new(scan)} end |
.each ⇒ Object
15 16 17 |
# File 'lib/qualys/scans.rb', line 15 def self.each self.all end |