Class: Proby::ProbyTaskStatus

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

Overview

Represents the status of a Proby task

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject (readonly)

The description of the task (OK, ERROR, PAUSED)



6
7
8
# File 'lib/proby/proby_task.rb', line 6

def description
  @description
end

#detailsObject (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