nebulab/cangaroo

View on GitHub
app/jobs/cangaroo/job.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Cangaroo
  class Job < ActiveJob::Base
    include Cangaroo::LoggerHelper

    queue_as :cangaroo

    def perform?
      fail NotImplementedError
    end

    def source_connection
      arguments.first.fetch(:source_connection)
    end

    def type
      arguments.first.fetch(:type)
    end

    def payload
      arguments.first.fetch(:payload)
    end
  end
end