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.



1805
1806
1807
1808
1809
1810
1811
# File 'lib/nexpose.rb', line 1805

def initialize(type, incremental, enabled = 1)

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

end

Instance Attribute Details

#enabledObject (readonly)

Enable or disable this scan trigger



1801
1802
1803
# File 'lib/nexpose.rb', line 1801

def enabled
  @enabled
end

#incrementalObject (readonly)

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



1803
1804
1805
# File 'lib/nexpose.rb', line 1803

def incremental
  @incremental
end

#typeObject (readonly)

Type of Trigger (AutoUpdate)



1799
1800
1801
# File 'lib/nexpose.rb', line 1799

def type
  @type
end