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)
620 621 622 623 624 625 |
# File 'lib/nexpose.rb', line 620 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
614 615 616 |
# File 'lib/nexpose.rb', line 614 def description @description end |
#id ⇒ Object (readonly)
The Site ID
610 611 612 |
# File 'lib/nexpose.rb', line 610 def id @id end |
#riskfactor ⇒ Object (readonly)
User assigned risk multiplier
616 617 618 |
# File 'lib/nexpose.rb', line 616 def riskfactor @riskfactor end |
#site_name ⇒ Object (readonly)
The Site Name
612 613 614 |
# File 'lib/nexpose.rb', line 612 def site_name @site_name end |
Instance Method Details
#_set_id(id) ⇒ Object
627 628 629 |
# File 'lib/nexpose.rb', line 627 def _set_id(id) @id = id end |