Class: MetricDataJob
- Inherits:
-
Object
- Object
- MetricDataJob
- Defined in:
- lib/models/metric_data_job.rb
Overview
Placeholder, job will be run in WebUI, not in the API
Instance Attribute Summary collapse
-
#payload ⇒ Object
Returns the value of attribute payload.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#payload ⇒ Object
Returns the value of attribute payload.
7 8 9 |
# File 'lib/models/metric_data_job.rb', line 7 def payload @payload end |
Class Method Details
.perform_later(payload = {}) ⇒ Object
9 10 11 |
# File 'lib/models/metric_data_job.rb', line 9 def self.perform_later(payload = {}) MetricDataJob.new.perform(payload.to_json) end |
Instance Method Details
#perform(_payload = {}) ⇒ Object
13 |
# File 'lib/models/metric_data_job.rb', line 13 def perform(_payload = {}); end |