Class: Nexpose::ReportSummary

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

Overview

Description

Object that represents the summary of a single report.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, cfg_id, status, generated_on, report_uri) ⇒ ReportSummary

Returns a new instance of ReportSummary.



2428
2429
2430
2431
2432
2433
2434
2435
2436
# File 'lib/nexpose.rb', line 2428

def initialize(id, cfg_id, status, generated_on, report_uri)

  @id = id
  @cfg_id = cfg_id
  @status = status
  @generated_on = generated_on
  @report_uri = report_uri

end

Instance Attribute Details

#cfg_idObject (readonly)

The Report Configuration ID



2419
2420
2421
# File 'lib/nexpose.rb', line 2419

def cfg_id
  @cfg_id
end

#generated_onObject (readonly)

The date on which this report was generated



2424
2425
2426
# File 'lib/nexpose.rb', line 2424

def generated_on
  @generated_on
end

#idObject (readonly)

The Report ID



2417
2418
2419
# File 'lib/nexpose.rb', line 2417

def id
  @id
end

#report_uriObject (readonly)

The relative URI of the report



2426
2427
2428
# File 'lib/nexpose.rb', line 2426

def report_uri
  @report_uri
end

#statusObject (readonly)

available | generating | failed



2422
2423
2424
# File 'lib/nexpose.rb', line 2422

def status
  @status
end