Class: Nexpose::ScanTrigger

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

Overview

Description

Object that holds an event that triggers the start of a scan.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, incremental, enabled = 1) ⇒ ScanTrigger

Returns a new instance of ScanTrigger.



1457
1458
1459
1460
1461
1462
1463
# File 'lib/nexpose.rb', line 1457

def initialize(type, incremental, enabled = 1)

	@type = type
	@incremental = incremental
	@enabled = enabled

end

Instance Attribute Details

#enabledObject (readonly)

Enable or disable this scan trigger



1453
1454
1455
# File 'lib/nexpose.rb', line 1453

def enabled
  @enabled
end

#incrementalObject (readonly)

Sets the trigger to start an incremental scan or a full scan



1455
1456
1457
# File 'lib/nexpose.rb', line 1455

def incremental
  @incremental
end

#typeObject (readonly)

Type of Trigger (AutoUpdate)



1451
1452
1453
# File 'lib/nexpose.rb', line 1451

def type
  @type
end