Class: Nexpose::ReportFilter
- Inherits:
-
Object
- Object
- Nexpose::ReportFilter
- 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
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, id) ⇒ ReportFilter
constructor
A new instance of ReportFilter.
Constructor Details
#initialize(type, id) ⇒ ReportFilter
Returns a new instance of ReportFilter.
2227 2228 2229 2230 2231 2232 |
# File 'lib/nexpose.rb', line 2227 def initialize(type, id) @type = type @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
2225 2226 2227 |
# File 'lib/nexpose.rb', line 2225 def id @id end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
2224 2225 2226 |
# File 'lib/nexpose.rb', line 2224 def type @type end |