Class: Nexpose::ReportFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/nexpose.rb

Overview

Description

Object that represents a report filter which determines which sites, asset groups, and/or devices that a report is run against. gtypes are “SiteFilter”, “AssetGroupFilter”, “DeviceFilter”, or “ScanFilter”. gid is the site-id, assetgroup-id, or devce-id. ScanFilter, if used, specifies a specifies a specific scan to use as the data source for the report. The gid can be a specific scan-id or “first” for the first run scan, or “last” for the last run scan.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, id) ⇒ ReportFilter

Returns a new instance of ReportFilter.



2591
2592
2593
2594
2595
2596
# File 'lib/nexpose.rb', line 2591

def initialize(type, id)

	@type = type
	@id = id

end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



2589
2590
2591
# File 'lib/nexpose.rb', line 2589

def id
  @id
end

#typeObject (readonly)

Returns the value of attribute type.



2588
2589
2590
# File 'lib/nexpose.rb', line 2588

def type
  @type
end