Class: Nexpose::ScanTemplateSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/nexpose/scan_template.rb

Overview

Scan Template summary information. Used when retrieving basic information about all scan templates.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ScanTemplateSummary

Returns a new instance of ScanTemplateSummary.



32
33
34
35
# File 'lib/nexpose/scan_template.rb', line 32

def initialize(json)
  @name = json['name']
  @id = json['id']
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



30
31
32
# File 'lib/nexpose/scan_template.rb', line 30

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



30
31
32
# File 'lib/nexpose/scan_template.rb', line 30

def name
  @name
end