Class: Nexpose::SiteSummary
- Inherits:
-
Object
- Object
- Nexpose::SiteSummary
- Defined in:
- lib/nexpose.rb
Overview
Description
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.
-
#riskfactor ⇒ Object
readonly
User assigned risk multiplier.
-
#site_name ⇒ Object
readonly
The Site Name.
Instance Method Summary collapse
- #_set_id(id) ⇒ Object
-
#initialize(id, site_name, description, riskfactor = 1) ⇒ SiteSummary
constructor
Constructor SiteSummary(id, site_name, description, riskfactor = 1).
Constructor Details
#initialize(id, site_name, description, riskfactor = 1) ⇒ SiteSummary
Constructor SiteSummary(id, site_name, description, riskfactor = 1)
1097 1098 1099 1100 1101 1102 |
# File 'lib/nexpose.rb', line 1097 def initialize(id, site_name, description, riskfactor = 1) @id = id @site_name = site_name @description = description @riskfactor = riskfactor end |
Instance Attribute Details
#description ⇒ Object (readonly)
A Description of the Site
1091 1092 1093 |
# File 'lib/nexpose.rb', line 1091 def description @description end |
#id ⇒ Object (readonly)
The Site ID
1087 1088 1089 |
# File 'lib/nexpose.rb', line 1087 def id @id end |
#riskfactor ⇒ Object (readonly)
User assigned risk multiplier
1093 1094 1095 |
# File 'lib/nexpose.rb', line 1093 def riskfactor @riskfactor end |
#site_name ⇒ Object (readonly)
The Site Name
1089 1090 1091 |
# File 'lib/nexpose.rb', line 1089 def site_name @site_name end |
Instance Method Details
#_set_id(id) ⇒ Object
1104 1105 1106 |
# File 'lib/nexpose.rb', line 1104 def _set_id(id) @id = id end |