Sha256: f4136efbc89df4988812db5f28573454a62f074cf78e601413b19eeb682f885e

Contents?: true

Size: 400 Bytes

Versions: 2

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

require 'emittance/resque/event_serializer'

module Emittance
  module Resque
    ##
    # Wrapper calls for resque jobs to dispatch.
    #
    class Job
      class << self
        def perform(event)
          deserialized_event = Emittance::Resque::EventSerializer.deserialize(event)

          new.perform(deserialized_event)
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
emittance-resque-0.1.1 lib/emittance/resque/job.rb
emittance-resque-0.1.0 lib/emittance/resque/job.rb