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)



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

#descriptionObject (readonly)

A Description of the Site



1091
1092
1093
# File 'lib/nexpose.rb', line 1091

def description
  @description
end

#idObject (readonly)

The Site ID



1087
1088
1089
# File 'lib/nexpose.rb', line 1087

def id
  @id
end

#riskfactorObject (readonly)

User assigned risk multiplier



1093
1094
1095
# File 'lib/nexpose.rb', line 1093

def riskfactor
  @riskfactor
end

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