Method: CommandJob#current_status
- Defined in:
- lib/app/models/command_job.rb
#current_status ⇒ Object
Return the job’s status and information in a hash that could be used to return to a calling api
132 133 134 135 136 |
# File 'lib/app/models/command_job.rb', line 132 def current_status status = { state: state } status[:message] = if .present? status end |