Class: Nexpose::ReportTemplateListing
- Inherits:
-
Object
- Object
- Nexpose::ReportTemplateListing
- Defined in:
- lib/nexpose.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#error_msg ⇒ Object
readonly
Returns the value of attribute error_msg.
-
#report_template_summaries ⇒ Object
readonly
; //Array (ReportTemplateSummary*).
-
#request_xml ⇒ Object
readonly
Returns the value of attribute request_xml.
-
#response_xml ⇒ Object
readonly
Returns the value of attribute response_xml.
-
#xml_tag_stack ⇒ Object
readonly
Returns the value of attribute xml_tag_stack.
Instance Method Summary collapse
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
2266 2267 2268 |
# File 'lib/nexpose.rb', line 2266 def connection @connection end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
2263 2264 2265 |
# File 'lib/nexpose.rb', line 2263 def error @error end |
#error_msg ⇒ Object (readonly)
Returns the value of attribute error_msg.
2262 2263 2264 |
# File 'lib/nexpose.rb', line 2262 def error_msg @error_msg end |
#report_template_summaries ⇒ Object (readonly)
; //Array (ReportTemplateSummary*)
2268 2269 2270 |
# File 'lib/nexpose.rb', line 2268 def report_template_summaries @report_template_summaries end |
#request_xml ⇒ Object (readonly)
Returns the value of attribute request_xml.
2264 2265 2266 |
# File 'lib/nexpose.rb', line 2264 def request_xml @request_xml end |
#response_xml ⇒ Object (readonly)
Returns the value of attribute response_xml.
2265 2266 2267 |
# File 'lib/nexpose.rb', line 2265 def response_xml @response_xml end |
#xml_tag_stack ⇒ Object (readonly)
Returns the value of attribute xml_tag_stack.
2267 2268 2269 |
# File 'lib/nexpose.rb', line 2267 def xml_tag_stack @xml_tag_stack end |
Instance Method Details
#ReportTemplateListing(connection) ⇒ Object
2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 |
# File 'lib/nexpose.rb', line 2271 def ReportTemplateListing(connection) @error = nil @connection = connection @report_template_summaries = Array.new() r = @connection.execute('<ReportTemplateListingRequest session-id="' + connection.session_id.to_s + '"/>') if (r.success) r.res.elements.each('ReportTemplateListingResponse/ReportTemplateSummary') do |r| @report_template_summaries.push(ReportTemplateSumary.new(r.attributes['id'],r.attributes['name'])) end else @error = true @error_msg = 'ReportTemplateListingRequest Parse Error' end end |