Class: Nexpose::VulnFilter
Overview
TODO: review
Description
Instance Attribute Summary collapse
-
#maxAlerts ⇒ Object
readonly
Returns the value of attribute maxAlerts.
-
#severityThreshold ⇒ Object
readonly
Returns the value of attribute severityThreshold.
-
#typeMask ⇒ Object
readonly
Returns the value of attribute typeMask.
Instance Method Summary collapse
-
#initialize(typeMask, severityThreshold, maxAlerts = -1)) ⇒ VulnFilter
constructor
A new instance of VulnFilter.
- #to_xml ⇒ Object
Methods included from Sanitize
Constructor Details
#initialize(typeMask, severityThreshold, maxAlerts = -1)) ⇒ VulnFilter
Returns a new instance of VulnFilter.
1825 1826 1827 1828 1829 |
# File 'lib/nexpose.rb', line 1825 def initialize(typeMask, severityThreshold, maxAlerts = -1) @typeMask = typeMask @maxAlerts = maxAlerts @severityThreshold = severityThreshold end |
Instance Attribute Details
#maxAlerts ⇒ Object (readonly)
Returns the value of attribute maxAlerts.
1822 1823 1824 |
# File 'lib/nexpose.rb', line 1822 def maxAlerts @maxAlerts end |
#severityThreshold ⇒ Object (readonly)
Returns the value of attribute severityThreshold.
1823 1824 1825 |
# File 'lib/nexpose.rb', line 1823 def severityThreshold @severityThreshold end |
#typeMask ⇒ Object (readonly)
Returns the value of attribute typeMask.
1821 1822 1823 |
# File 'lib/nexpose.rb', line 1821 def typeMask @typeMask end |
Instance Method Details
#to_xml ⇒ Object
1832 1833 1834 1835 1836 1837 1838 1839 1840 |
# File 'lib/nexpose.rb', line 1832 def to_xml xml = "<vulnFilter " xml << %Q{ typeMask="#{replace_entities(typeMask)}"} xml << %Q{ maxAlerts="#{replace_entities(maxAlerts)}"} xml << %Q{ severityThreshold="#{replace_entities(severityThreshold)}"} xml << "/>" xml end |