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.
-
#dynamic ⇒ Object
readonly
Returns the value of attribute dynamic.
-
#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.
- #dynamic? ⇒ Boolean
-
#initialize(id, name, desc, risk, dynamic) ⇒ AssetGroupSummary
constructor
A new instance of AssetGroupSummary.
Constructor Details
#initialize(id, name, desc, risk, dynamic) ⇒ AssetGroupSummary
Returns a new instance of AssetGroupSummary.
48 49 50 51 52 53 54 |
# File 'lib/nexpose/group.rb', line 48 def initialize(id, name, desc, risk, dynamic) @id = id @name = name @description = desc @risk_score = risk @dynamic = dynamic end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
46 47 48 |
# File 'lib/nexpose/group.rb', line 46 def description @description end |
#dynamic ⇒ Object (readonly)
Returns the value of attribute dynamic.
46 47 48 |
# File 'lib/nexpose/group.rb', line 46 def dynamic @dynamic end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
46 47 48 |
# File 'lib/nexpose/group.rb', line 46 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
46 47 48 |
# File 'lib/nexpose/group.rb', line 46 def name @name end |
#risk_score ⇒ Object (readonly)
Returns the value of attribute risk_score.
46 47 48 |
# File 'lib/nexpose/group.rb', line 46 def risk_score @risk_score end |
Instance Method Details
#delete(connection) ⇒ Object
Delete this asset group and all associated data.
64 65 66 |
# File 'lib/nexpose/group.rb', line 64 def delete(connection) connection.delete_asset_group(@id) end |
#dynamic? ⇒ Boolean
56 57 58 |
# File 'lib/nexpose/group.rb', line 56 def dynamic? dynamic end |