class Octokiq::Processor

Attributes

args[RW]
klass[RW]

Public Class Methods

new(job) click to toggle source
# File lib/octokiq/processor.rb, line 4
def initialize(job)
  klass_name = job.fetch(Consts::ITEM_CLASS_KEY)
  @args = job.fetch(Consts::ITEM_ARGS_KEY)
  @klass = Object.const_get(klass_name)
end

Public Instance Methods

run() click to toggle source
# File lib/octokiq/processor.rb, line 10
def run
  klass.new.perform(*args)
end