Class: Nexpose::AssetGroupSummary
- Inherits:
-
Object
- Object
- Nexpose::AssetGroupSummary
- Defined in:
- lib/nexpose/group.rb
Overview
Summary value object for asset group information.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#risk_score ⇒ Object
readonly
Returns the value of attribute risk_score.
Instance Method Summary collapse
-
#delete(connection) ⇒ Object
Delete this asset group and all associated data.
-
#initialize(id, name, desc, risk) ⇒ AssetGroupSummary
constructor
A new instance of AssetGroupSummary.
Constructor Details
#initialize(id, name, desc, risk) ⇒ AssetGroupSummary
Returns a new instance of AssetGroupSummary.
47 48 49 |
# File 'lib/nexpose/group.rb', line 47 def initialize(id, name, desc, risk) @id, @name, @description, @risk_score = id, name, desc, risk end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
45 46 47 |
# File 'lib/nexpose/group.rb', line 45 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
45 46 47 |
# File 'lib/nexpose/group.rb', line 45 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
45 46 47 |
# File 'lib/nexpose/group.rb', line 45 def name @name end |
#risk_score ⇒ Object (readonly)
Returns the value of attribute risk_score.
45 46 47 |
# File 'lib/nexpose/group.rb', line 45 def risk_score @risk_score end |
Instance Method Details
#delete(connection) ⇒ Object
Delete this asset group and all associated data.
55 56 57 |
# File 'lib/nexpose/group.rb', line 55 def delete(connection) connection.asset_group_delete(@id) end |