Class: Nexpose::SiteSummary

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

Overview

Description

Object that represents the summary of a NeXpose Site.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject (readonly)

A Description of the Site



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

def description
  @description
end

#idObject (readonly)

The Site ID



610
611
612
# File 'lib/nexpose.rb', line 610

def id
  @id
end

#riskfactorObject (readonly)

User assigned risk multiplier



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

def riskfactor
  @riskfactor
end

#site_nameObject (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