Class: Barbeque::Api::JobExecutionResource
- Inherits:
-
ApplicationResource
- Object
- ApplicationResource
- Barbeque::Api::JobExecutionResource
- Defined in:
- app/models/barbeque/api/job_execution_resource.rb
Instance Method Summary collapse
Instance Method Details
#html_url ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/models/barbeque/api/job_execution_resource.rb', line 10 def html_url if model.id Barbeque::Engine.routes.url_helpers.job_execution_url(model, host: ENV['BARBEQUE_HOST']) else nil end end |
#message ⇒ Object
18 19 20 21 22 23 |
# File 'app/models/barbeque/api/job_execution_resource.rb', line 18 def log = @model.execution_log if log log['message'] end end |