Method: Qs::DispatchJob.event

Defined in:
lib/qs/dispatch_job.rb

.event(job) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/qs/dispatch_job.rb', line 9

def self.event(job)
  Qs::Event.new(job.params['event_channel'], job.params['event_name'], {
    :params       => job.params['event_params'],
    :publisher    => job.params['event_publisher'],
    :published_at => job.created_at
  })
end