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)



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

#descriptionObject (readonly)

A Description of the Site.



616
617
618
# File 'lib/nexpose/site.rb', line 616

def description
  @description
end

#idObject (readonly)

The Site ID.



612
613
614
# File 'lib/nexpose/site.rb', line 612

def id
  @id
end

#nameObject (readonly)

The Site Name.



614
615
616
# File 'lib/nexpose/site.rb', line 614

def name
  @name
end

#risk_factorObject (readonly)

User assigned risk multiplier.



618
619
620
# File 'lib/nexpose/site.rb', line 618

def risk_factor
  @risk_factor
end

#risk_scoreObject (readonly)

Current computed risk score for the site.



620
621
622
# File 'lib/nexpose/site.rb', line 620

def risk_score
  @risk_score
end