Class: ScanTemplate

Inherits:
Domain::Model show all
Defined in:
lib/domain/scan_template/model.rb

Defined Under Namespace

Classes: Checks, Database, Discovery, Policy, Telnet, Web

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Domain::Model

columns, from_csv, from_json, headers, primary_key, table_name, #to_csv, #to_hash, #to_s, view

Constructor Details

#initialize(attributes = {}) ⇒ ScanTemplate

Returns a new instance of ScanTemplate.



9
10
11
12
13
14
15
16
17
# File 'lib/domain/scan_template/model.rb', line 9

def initialize(attributes = {})
  @checks = Checks.new(attributes[:checks]) if attributes[:checks]
  @database = Database.new(attributes[:database]) if attributes[:database]
  @discovery = Discovery.new(attributes[:discovery]) if attributes[:discovery]
  @policy = Policy.new(attributes[:policy]) if attributes[:policy]
  @telnet = Telnet.new(attributes[:telnet]) if attributes[:telnet]
  @web = Web.new(attributes[:web]) if attributes[:web]
  super(attributes)
end

Instance Attribute Details

#checksObject

Returns the value of attribute checks.



6
7
8
# File 'lib/domain/scan_template/model.rb', line 6

def checks
  @checks
end

#databaseObject

Returns the value of attribute database.



6
7
8
# File 'lib/domain/scan_template/model.rb', line 6

def database
  @database
end

#descriptionObject

Returns the value of attribute description.



6
7
8
# File 'lib/domain/scan_template/model.rb', line 6

def description
  @description
end

#discoveryObject

Returns the value of attribute discovery.



6
7
8
# File 'lib/domain/scan_template/model.rb', line 6

def discovery
  @discovery
end

#discovery_onlyObject

Returns the value of attribute discovery_only.



6
7
8
# File 'lib/domain/scan_template/model.rb', line 6

def discovery_only
  @discovery_only
end

#enable_windows_servicesObject

Returns the value of attribute enable_windows_services.



6
7
8
# File 'lib/domain/scan_template/model.rb', line 6

def enable_windows_services
  @enable_windows_services
end

#enhanced_loggingObject

Returns the value of attribute enhanced_logging.



6
7
8
# File 'lib/domain/scan_template/model.rb', line 6

def enhanced_logging
  @enhanced_logging
end

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/domain/scan_template/model.rb', line 6

def id
  @id
end

#max_parallel_assetsObject

Returns the value of attribute max_parallel_assets.



6
7
8
# File 'lib/domain/scan_template/model.rb', line 6

def max_parallel_assets
  @max_parallel_assets
end

#max_scan_processesObject

Returns the value of attribute max_scan_processes.



6
7
8
# File 'lib/domain/scan_template/model.rb', line 6

def max_scan_processes
  @max_scan_processes
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/domain/scan_template/model.rb', line 6

def name
  @name
end

#policyObject

Returns the value of attribute policy.



6
7
8
# File 'lib/domain/scan_template/model.rb', line 6

def policy
  @policy
end

#policy_enabledObject

Returns the value of attribute policy_enabled.



6
7
8
# File 'lib/domain/scan_template/model.rb', line 6

def policy_enabled
  @policy_enabled
end

#telnetObject

Returns the value of attribute telnet.



6
7
8
# File 'lib/domain/scan_template/model.rb', line 6

def telnet
  @telnet
end

#vulnerability_enabledObject

Returns the value of attribute vulnerability_enabled.



6
7
8
# File 'lib/domain/scan_template/model.rb', line 6

def vulnerability_enabled
  @vulnerability_enabled
end

#webObject

Returns the value of attribute web.



6
7
8
# File 'lib/domain/scan_template/model.rb', line 6

def web
  @web
end

#web_enabledObject

Returns the value of attribute web_enabled.



6
7
8
# File 'lib/domain/scan_template/model.rb', line 6

def web_enabled
  @web_enabled
end