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.
610 611 612 613 614 |
# File 'lib/nexpose/scan.rb', line 610 def initialize(pending, active, completed) @pending = pending @active = active @completed = completed end |
Instance Attribute Details
#active ⇒ Object (readonly)
Returns the value of attribute active.
608 609 610 |
# File 'lib/nexpose/scan.rb', line 608 def active @active end |
#completed ⇒ Object (readonly)
Returns the value of attribute completed.
608 609 610 |
# File 'lib/nexpose/scan.rb', line 608 def completed @completed end |
#pending ⇒ Object (readonly)
Returns the value of attribute pending.
608 609 610 |
# File 'lib/nexpose/scan.rb', line 608 def pending @pending end |