Module: Wrapbox::Job

Defined in:
lib/wrapbox/job.rb

Class Method Summary collapse

Class Method Details

.performObject



5
6
7
8
9
10
11
# File 'lib/wrapbox/job.rb', line 5

def self.perform
  klass = ENV[CLASS_NAME_ENV].constantize
  method_name = ENV[METHOD_NAME_ENV].to_sym
  args = MultiJson.load(ENV[METHOD_ARGS_ENV])

  klass.new.send(method_name, *args)
end