Module: IronWorker::TestService::Queue
- Defined in:
- lib/iron_cuke/test_service.rb
Instance Method Summary collapse
Instance Method Details
#queue(name, data, options) ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/iron_cuke/test_service.rb', line 27 def queue(name, data, ) worker = name.classify.constantize.new variables = JSON.parse(Base64.decode64(data[:attr_encoded])) if data[:attr_encoded].present? variables.each do |k, v| worker.instance_variable_set(k.to_sym, v) end IronCuke.queue(worker, ) end |