Module: Qualys

Extended by:
Qualys
Included in:
Qualys
Defined in:
lib/qualys.rb,
lib/qualys/api.rb,
lib/qualys/auth.rb,
lib/qualys/host.rb,
lib/qualys/scans.rb,
lib/qualys/config.rb,
lib/qualys/report.rb,
lib/qualys/version.rb,
lib/qualys/compliance.rb,
lib/qualys/vulnerability.rb

Defined Under Namespace

Modules: Config Classes: Api, Auth, Compliance, Details, Host, Report, Scan, Scans, Vulnerability

Constant Summary collapse

VERSION =
'0.1.5'.freeze

Instance Method Summary collapse

Instance Method Details

#configureObject Also known as: config



21
22
23
24
25
26
27
28
29
# File 'lib/qualys.rb', line 21

def configure
  block_given? ? yield(Config) : Config
  %w[username password].each do |key|
    next unless Qualys::Config.instance_variable_get("@#{key}").nil?
    raise Qualys::Config::RequiredOptionMissing,
          "Configuration parameter missing: '#{key}'. " \
          'Please add it to the Qualys.configure block'
  end
end