class Qualys::Compliance

Public Class Methods

all() click to toggle source
# File lib/qualys/compliance.rb, line 3
def self.all
  response = api_get('/compliance/control/', query: { action: 'list' })

  unless response.parsed_response['<COMPLIANCE_SCAN_RESULT_OUTPUT']['RESPONSE'].key? 'COMPLIANCE_SCAN'
    return []
  end

  response.parsed_response['COMPLIANCE_SCAN_RESULT_OUTPUT']['RESPONSE']['COMPLIANCE_SCAN']
end
each() click to toggle source
# File lib/qualys/compliance.rb, line 13
def self.each
  all
end