Class: SensorsReadingJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
app/jobs/sensors_reading_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(options = {}) ⇒ Object


4
5
6
# File 'app/jobs/sensors_reading_job.rb', line 4

def perform(options = {})
  Sensor.retrieve_all(options.merge(background: true))
end