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.



1934
1935
1936
1937
1938
1939
1940
# File 'lib/nexpose.rb', line 1934

def initialize(type, incremental, enabled = 1)

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

end

Instance Attribute Details

#enabledObject (readonly)

Enable or disable this scan trigger



1930
1931
1932
# File 'lib/nexpose.rb', line 1930

def enabled
  @enabled
end

#incrementalObject (readonly)

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



1932
1933
1934
# File 'lib/nexpose.rb', line 1932

def incremental
  @incremental
end

#typeObject (readonly)

Type of Trigger (AutoUpdate)



1928
1929
1930
# File 'lib/nexpose.rb', line 1928

def type
  @type
end