diff --git a/lib/nexpose/scan.rb b/lib/nexpose/scan.rb index ed86fa91..2e7c2ab9 100644 --- a/lib/nexpose/scan.rb +++ b/lib/nexpose/scan.rb @@ -769,6 +769,8 @@ class CompletedScan attr_reader :type # Name of the engine where the scan was run. Not the unique ID. attr_reader :engine_name + # Name of the scan that was assigned. + attr_reader :scan_name # Internal constructor to be called by #parse_json. def initialize(&block) @@ -790,6 +792,7 @@ def self.parse_json(json) @risk_score = json['riskScore'] @type = json['startedByCD'] == 'S' ? :scheduled : :manual @engine_name = json['scanEngineName'] + @scan_name = json['scanName'] end end @@ -822,6 +825,7 @@ def self.parse_dyntable(json) @risk_score = json['riskScore'] @type = json['Scan Type'] == 'Manual' ? :manual : :scheduled @engine_name = json['Scan Engine'] + @scan_name = json['Scan Name'] end end