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)
624 625 626 627 628 629 630 |
# File 'lib/nexpose/site.rb', line 624 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.
616 617 618 |
# File 'lib/nexpose/site.rb', line 616 def description @description end |
#id ⇒ Object (readonly)
The Site ID.
612 613 614 |
# File 'lib/nexpose/site.rb', line 612 def id @id end |
#name ⇒ Object (readonly)
The Site Name.
614 615 616 |
# File 'lib/nexpose/site.rb', line 614 def name @name end |
#risk_factor ⇒ Object (readonly)
User assigned risk multiplier.
618 619 620 |
# File 'lib/nexpose/site.rb', line 618 def risk_factor @risk_factor end |
#risk_score ⇒ Object (readonly)
Current computed risk score for the site.
620 621 622 |
# File 'lib/nexpose/site.rb', line 620 def risk_score @risk_score end |