Class: Nexpose::ScanTemplateSummary
- Inherits:
-
Object
- Object
- Nexpose::ScanTemplateSummary
- 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
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(json) ⇒ ScanTemplateSummary
constructor
A new instance of ScanTemplateSummary.
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
30 31 32 |
# File 'lib/nexpose/scan_template.rb', line 30 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
30 31 32 |
# File 'lib/nexpose/scan_template.rb', line 30 def name @name end |