Class: Tenable::Models::WebAppScanConfig

Inherits:
Data
  • Object
show all
Defined in:
lib/tenable/models/web_app_scan_config.rb

Overview

Represents a web application scan configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#config_idObject (readonly)

Returns the value of attribute config_id

Returns:

  • the current value of config_id



6
7
8
# File 'lib/tenable/models/web_app_scan_config.rb', line 6

def config_id
  @config_id
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • the current value of name



6
7
8
# File 'lib/tenable/models/web_app_scan_config.rb', line 6

def name
  @name
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • the current value of status



6
7
8
# File 'lib/tenable/models/web_app_scan_config.rb', line 6

def status
  @status
end

#targetObject (readonly)

Returns the value of attribute target

Returns:

  • the current value of target



6
7
8
# File 'lib/tenable/models/web_app_scan_config.rb', line 6

def target
  @target
end

#tracking_idObject (readonly)

Returns the value of attribute tracking_id

Returns:

  • the current value of 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.

Parameters:

  • raw API response hash with string keys

Returns:



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