Class: Nexpose::ScanSummary::Tasks
- Inherits:
-
Object
- Object
- Nexpose::ScanSummary::Tasks
- Defined in:
- lib/nexpose/scan.rb
Overview
Value class to tracking task counts.
Instance Attribute Summary collapse
-
#active ⇒ Object
readonly
Returns the value of attribute active.
-
#completed ⇒ Object
readonly
Returns the value of attribute completed.
-
#pending ⇒ Object
readonly
Returns the value of attribute pending.
Class Method Summary collapse
-
.parse(rexml) ⇒ Tasks
Parse REXML to Tasks object.
Instance Method Summary collapse
-
#initialize(pending, active, completed) ⇒ Tasks
constructor
A new instance of Tasks.
Constructor Details
#initialize(pending, active, completed) ⇒ Tasks
Returns a new instance of Tasks.
557 558 559 |
# File 'lib/nexpose/scan.rb', line 557 def initialize(pending, active, completed) @pending, @active, @completed = pending, active, completed end |
Instance Attribute Details
#active ⇒ Object (readonly)
Returns the value of attribute active.
555 556 557 |
# File 'lib/nexpose/scan.rb', line 555 def active @active end |
#completed ⇒ Object (readonly)
Returns the value of attribute completed.
555 556 557 |
# File 'lib/nexpose/scan.rb', line 555 def completed @completed end |
#pending ⇒ Object (readonly)
Returns the value of attribute pending.
555 556 557 |
# File 'lib/nexpose/scan.rb', line 555 def pending @pending end |