Class: Chillout::Job
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- Chillout::Job
- Defined in:
- lib/chillout/job.rb
Class Attribute Summary collapse
-
.dispatcher ⇒ Object
Returns the value of attribute dispatcher.
Instance Method Summary collapse
Class Attribute Details
.dispatcher ⇒ Object
Returns the value of attribute dispatcher.
5 6 7 |
# File 'lib/chillout/job.rb', line 5 def dispatcher @dispatcher end |
Instance Method Details
#perform(serialized_metric) ⇒ Object
8 9 10 11 |
# File 'lib/chillout/job.rb', line 8 def perform(serialized_metric) measurement = YAML.load(serialized_metric) self.class.dispatcher.send_measurements([measurement]) end |