Class: Nexpose::SiteSummary
- Inherits:
-
Object
- Object
- Nexpose::SiteSummary
- Defined in:
- lib/nexpose/site.rb
Overview
Object that represents the summary of a Nexpose Site.
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
A Description of the Site.
-
#id ⇒ Object
readonly
The Site ID.
-
#name ⇒ Object
readonly
The Site Name.
-
#risk_factor ⇒ Object
readonly
User assigned risk multiplier.
-
#risk_score ⇒ Object
readonly
Current computed risk score for the site.
Instance Method Summary collapse
-
#initialize(id, name, description = nil, risk_factor = 1.0, risk_score = 0.0) ⇒ SiteSummary
constructor
Constructor SiteSummary(id, name, description, riskfactor = 1).
Constructor Details
#initialize(id, name, description = nil, risk_factor = 1.0, risk_score = 0.0) ⇒ SiteSummary
Constructor SiteSummary(id, name, description, riskfactor = 1)
574 575 576 577 578 579 580 |
# File 'lib/nexpose/site.rb', line 574 def initialize(id, name, description = nil, risk_factor = 1.0, risk_score = 0.0) @id = id @name = name @description = description @risk_factor = risk_factor @risk_score = risk_score end |
Instance Attribute Details
#description ⇒ Object (readonly)
A Description of the Site.
566 567 568 |
# File 'lib/nexpose/site.rb', line 566 def description @description end |
#id ⇒ Object (readonly)
The Site ID.
562 563 564 |
# File 'lib/nexpose/site.rb', line 562 def id @id end |
#name ⇒ Object (readonly)
The Site Name.
564 565 566 |
# File 'lib/nexpose/site.rb', line 564 def name @name end |
#risk_factor ⇒ Object (readonly)
User assigned risk multiplier.
568 569 570 |
# File 'lib/nexpose/site.rb', line 568 def risk_factor @risk_factor end |
#risk_score ⇒ Object (readonly)
Current computed risk score for the site.
570 571 572 |
# File 'lib/nexpose/site.rb', line 570 def risk_score @risk_score end |