Class: ScatterGather::DependencyStatus
- Inherits:
-
Struct
- Object
- Struct
- ScatterGather::DependencyStatus
- Defined in:
- lib/scatter_gather/dependency_status.rb
Overview
Struct to represent the status of a dependency job
Instance Attribute Summary collapse
-
#active_job_class ⇒ Object
Returns the value of attribute active_job_class.
-
#active_job_id ⇒ Object
Returns the value of attribute active_job_id.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#checkmark ⇒ String
Get a checkmark for completed jobs.
-
#display_class ⇒ String
Get a display-friendly class name for unknown jobs.
Instance Attribute Details
#active_job_class ⇒ Object
Returns the value of attribute active_job_class
7 8 9 |
# File 'lib/scatter_gather/dependency_status.rb', line 7 def active_job_class @active_job_class end |
#active_job_id ⇒ Object
Returns the value of attribute active_job_id
7 8 9 |
# File 'lib/scatter_gather/dependency_status.rb', line 7 def active_job_id @active_job_id end |
#status ⇒ Object
Returns the value of attribute status
7 8 9 |
# File 'lib/scatter_gather/dependency_status.rb', line 7 def status @status end |
Instance Method Details
#checkmark ⇒ String
Get a checkmark for completed jobs
16 17 18 |
# File 'lib/scatter_gather/dependency_status.rb', line 16 def checkmark (status == :completed) ? "✓" : " " end |
#display_class ⇒ String
Get a display-friendly class name for unknown jobs
10 11 12 |
# File 'lib/scatter_gather/dependency_status.rb', line 10 def display_class active_job_class || "(unknown)" end |