Class: Tenable::Models::WebAppScanConfig
- Inherits:
-
Data
- Object
- Data
- Tenable::Models::WebAppScanConfig
- Defined in:
- lib/tenable/models/web_app_scan_config.rb
Overview
Represents a web application scan configuration.
Instance Attribute Summary collapse
-
#config_id ⇒ Object
readonly
Returns the value of attribute config_id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
-
#tracking_id ⇒ Object
readonly
Returns the value of attribute tracking_id.
Class Method Summary collapse
-
.from_api(data) ⇒ WebAppScanConfig
Builds a WebAppScanConfig from a raw API response hash.
Instance Attribute Details
#config_id ⇒ Object (readonly)
Returns the value of attribute config_id
6 7 8 |
# File 'lib/tenable/models/web_app_scan_config.rb', line 6 def config_id @config_id end |
#name ⇒ Object (readonly)
Returns the value of attribute name
6 7 8 |
# File 'lib/tenable/models/web_app_scan_config.rb', line 6 def name @name end |
#status ⇒ Object (readonly)
Returns the value of attribute status
6 7 8 |
# File 'lib/tenable/models/web_app_scan_config.rb', line 6 def status @status end |
#target ⇒ Object (readonly)
Returns the value of attribute target
6 7 8 |
# File 'lib/tenable/models/web_app_scan_config.rb', line 6 def target @target end |
#tracking_id ⇒ Object (readonly)
Returns the value of attribute tracking_id
6 7 8 |
# File 'lib/tenable/models/web_app_scan_config.rb', line 6 def tracking_id @tracking_id end |
Class Method Details
.from_api(data) ⇒ WebAppScanConfig
Builds a WebAppScanConfig from a raw API response hash.
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/tenable/models/web_app_scan_config.rb', line 11 def self.from_api(data) data = data.transform_keys(&:to_sym) new( config_id: data[:config_id], name: data[:name], target: data[:target], status: data[:status], tracking_id: data[:tracking_id] ) end |