Class: Nexpose::Device
- Inherits:
-
Object
- Object
- Nexpose::Device
- Defined in:
- lib/nexpose/site.rb
Overview
Description
Object that represents a single device in an NSC.
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
IP Address or Hostname of this device.
-
#id ⇒ Object
readonly
A unique device ID (assigned by the NSC).
-
#riskfactor ⇒ Object
readonly
User assigned risk multiplier.
-
#riskscore ⇒ Object
readonly
Nexpose risk score.
-
#site_id ⇒ Object
readonly
The site ID of this devices site.
Instance Method Summary collapse
-
#initialize(id, site_id, address, riskfactor = 1, riskscore = 0) ⇒ Device
constructor
A new instance of Device.
Constructor Details
#initialize(id, site_id, address, riskfactor = 1, riskscore = 0) ⇒ Device
Returns a new instance of Device.
592 593 594 595 596 597 598 599 |
# File 'lib/nexpose/site.rb', line 592 def initialize(id, site_id, address, riskfactor=1, riskscore=0) @id = id @site_id = site_id @address = address @riskfactor = riskfactor @riskscore = riskscore end |
Instance Attribute Details
#address ⇒ Object (readonly)
IP Address or Hostname of this device
586 587 588 |
# File 'lib/nexpose/site.rb', line 586 def address @address end |
#id ⇒ Object (readonly)
A unique device ID (assigned by the NSC)
582 583 584 |
# File 'lib/nexpose/site.rb', line 582 def id @id end |
#riskfactor ⇒ Object (readonly)
User assigned risk multiplier
588 589 590 |
# File 'lib/nexpose/site.rb', line 588 def riskfactor @riskfactor end |
#riskscore ⇒ Object (readonly)
Nexpose risk score
590 591 592 |
# File 'lib/nexpose/site.rb', line 590 def riskscore @riskscore end |
#site_id ⇒ Object (readonly)
The site ID of this devices site
584 585 586 |
# File 'lib/nexpose/site.rb', line 584 def site_id @site_id end |