module Mqjob

Constants

VERSION

Attributes

config[R]

Public Instance Methods

configure() { |config| ... } click to toggle source
# File lib/mqjob.rb, line 15
def configure(&block)
  @config ||= Config.new

  yield @config
end
default_client() click to toggle source
# File lib/mqjob.rb, line 25
def default_client
  config&.client
end
hooks() click to toggle source
# File lib/mqjob.rb, line 21
def hooks
  config&.hooks
end
logger() click to toggle source
# File lib/mqjob.rb, line 40
def logger
  config.logger ||= ::Logger.new(STDOUT).tap do |logger|
                      logger.formatter = Formatter.new
                    end
end
regist_class(v) click to toggle source
# File lib/mqjob.rb, line 34
def regist_class(v)
  @registed_class ||= []
  @registed_class << v
  @registed_class.uniq!
end
registed_class() click to toggle source

FIXME when job inherit from parent job it will not appear here!!

# File lib/mqjob.rb, line 30
def registed_class
  @registed_class ||= []
end