Sha256: ceb6d59dad263649eec5c0f20717f53e939fce867abd1761fb89ed5789998a90

Contents?: true

Size: 232 Bytes

Versions: 4

Compression:

Stored size: 232 Bytes

Contents

# app/workers/process_attachment_worker.rb
class ProcessAttachmentWorker
  include Sidekiq::Worker

  def perform(message_id)
    msg = Mastiff::Email::Message.get(message_id)

    #Do Something here with the message
    #
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mastiff-0.1.4 lib/generators/mastiff/install/templates/sidekiq/process_attachment_worker.rb
mastiff-0.1.3 lib/generators/mastiff/install/templates/sidekiq/process_attachment_worker.rb
mastiff-0.1.1 lib/generators/mastiff/install/templates/sidekiq/process_attachment_worker.rb
mastiff-0.1.0 lib/generators/mastiff/install/templates/sidekiq/process_attachment_worker.rb