Class: Jongleur::WorkerTask

Inherits:
Object
  • Object
show all
Defined in:
lib/jongleur/worker_task.rb

Overview

This is a Base class for all task classes executed by Jongleur. Every class declared and used in Jongleur must inherit from <WorkerTask>

Instance Method Summary collapse

Constructor Details

#initialize(**other_args) ⇒ WorkerTask

Returns a new instance of WorkerTask.



7
8
9
10
11
12
13
# File 'lib/jongleur/worker_task.rb', line 7

def initialize(**other_args)
  other_args.each do |key, val|
    var_name = "@#{key}"
    instance_variable_set(var_name, val)
    self.class.send(:attr_accessor, key.to_s)
  end
end