Class: Nexpose::SiteSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/nexpose/site.rb

Overview

Object that represents the summary of a Nexpose Site.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject (readonly)

A Description of the Site.



566
567
568
# File 'lib/nexpose/site.rb', line 566

def description
  @description
end

#idObject (readonly)

The Site ID.



562
563
564
# File 'lib/nexpose/site.rb', line 562

def id
  @id
end

#nameObject (readonly)

The Site Name.



564
565
566
# File 'lib/nexpose/site.rb', line 564

def name
  @name
end

#risk_factorObject (readonly)

User assigned risk multiplier.



568
569
570
# File 'lib/nexpose/site.rb', line 568

def risk_factor
  @risk_factor
end

#risk_scoreObject (readonly)

Current computed risk score for the site.



570
571
572
# File 'lib/nexpose/site.rb', line 570

def risk_score
  @risk_score
end