Class: Proby::ProbyTaskStatus
- Inherits:
-
Object
- Object
- Proby::ProbyTaskStatus
- Defined in:
- lib/proby/proby_task.rb
Overview
Represents the status of a Proby task
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
The description of the task (OK, ERROR, PAUSED).
-
#details ⇒ Object
readonly
Any details (why the task is in the ERROR state).
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ProbyTaskStatus
constructor
A new instance of ProbyTaskStatus.
Constructor Details
#initialize(attributes = {}) ⇒ ProbyTaskStatus
Returns a new instance of ProbyTaskStatus.
11 12 13 14 |
# File 'lib/proby/proby_task.rb', line 11 def initialize(attributes={}) @description = attributes['description'] @details = attributes['details'] end |
Instance Attribute Details
#description ⇒ Object (readonly)
The description of the task (OK, ERROR, PAUSED)
6 7 8 |
# File 'lib/proby/proby_task.rb', line 6 def description @description end |
#details ⇒ Object (readonly)
Any details (why the task is in the ERROR state)
9 10 11 |
# File 'lib/proby/proby_task.rb', line 9 def details @details end |