Class: ScanTemplate
- Inherits:
-
Domain::Model
- Object
- Domain::Model
- ScanTemplate
- Defined in:
- lib/domain/scan_template/model.rb
Defined Under Namespace
Classes: Checks, Database, Discovery, Policy, Telnet, Web
Instance Attribute Summary collapse
-
#checks ⇒ Object
Returns the value of attribute checks.
-
#database ⇒ Object
Returns the value of attribute database.
-
#description ⇒ Object
Returns the value of attribute description.
-
#discovery ⇒ Object
Returns the value of attribute discovery.
-
#discovery_only ⇒ Object
Returns the value of attribute discovery_only.
-
#enable_windows_services ⇒ Object
Returns the value of attribute enable_windows_services.
-
#enhanced_logging ⇒ Object
Returns the value of attribute enhanced_logging.
-
#id ⇒ Object
Returns the value of attribute id.
-
#max_parallel_assets ⇒ Object
Returns the value of attribute max_parallel_assets.
-
#max_scan_processes ⇒ Object
Returns the value of attribute max_scan_processes.
-
#name ⇒ Object
Returns the value of attribute name.
-
#policy ⇒ Object
Returns the value of attribute policy.
-
#policy_enabled ⇒ Object
Returns the value of attribute policy_enabled.
-
#telnet ⇒ Object
Returns the value of attribute telnet.
-
#vulnerability_enabled ⇒ Object
Returns the value of attribute vulnerability_enabled.
-
#web ⇒ Object
Returns the value of attribute web.
-
#web_enabled ⇒ Object
Returns the value of attribute web_enabled.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ScanTemplate
constructor
A new instance of ScanTemplate.
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
#checks ⇒ Object
Returns the value of attribute checks.
6 7 8 |
# File 'lib/domain/scan_template/model.rb', line 6 def checks @checks end |
#database ⇒ Object
Returns the value of attribute database.
6 7 8 |
# File 'lib/domain/scan_template/model.rb', line 6 def database @database end |
#description ⇒ Object
Returns the value of attribute description.
6 7 8 |
# File 'lib/domain/scan_template/model.rb', line 6 def description @description end |
#discovery ⇒ Object
Returns the value of attribute discovery.
6 7 8 |
# File 'lib/domain/scan_template/model.rb', line 6 def discovery @discovery end |
#discovery_only ⇒ Object
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_services ⇒ Object
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_logging ⇒ Object
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 |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/domain/scan_template/model.rb', line 6 def id @id end |
#max_parallel_assets ⇒ Object
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_processes ⇒ Object
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 |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/domain/scan_template/model.rb', line 6 def name @name end |
#policy ⇒ Object
Returns the value of attribute policy.
6 7 8 |
# File 'lib/domain/scan_template/model.rb', line 6 def policy @policy end |
#policy_enabled ⇒ Object
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 |
#telnet ⇒ Object
Returns the value of attribute telnet.
6 7 8 |
# File 'lib/domain/scan_template/model.rb', line 6 def telnet @telnet end |
#vulnerability_enabled ⇒ Object
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 |
#web ⇒ Object
Returns the value of attribute web.
6 7 8 |
# File 'lib/domain/scan_template/model.rb', line 6 def web @web end |
#web_enabled ⇒ Object
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 |