Sha256: 4d23efe5276fb21e8c145b73cf9e0856fa7a3cb8959602e9334f48c153b00c72

Contents?: true

Size: 694 Bytes

Versions: 1

Compression:

Stored size: 694 Bytes

Contents

module QPush
  module Server
    module Apis
      class Base
        def self.call(*args)
          api = new(*args)
          api.call
        end
      end
    end

    class ApiWrapper
      def initialize(job)
        @job = job
      end

      def queue
        Apis::Queue.call(@job)
      end

      def perform
        Apis::Perform.call(@job)
      end

      def execute
        Apis::Execute.call(@job)
      end

      def delay
        Apis::Delay.call(@job, :delay)
      end

      def retry
        Apis::Delay.call(@job, :retry)
      end

      def morgue
        Apis::Morgue.call(@job)
      end

      def setup
        Apis::Setup.call(@job)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
qpush-0.1.4 lib/qpush/server/apis.rb