Class: Chillout::Job

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
lib/chillout/job.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.dispatcherObject

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