Sha256: 15867ec2dd6141cc8ae17f1179c28cd0cba273eb58db86899323de9b45730588
Contents?: true
Size: 509 Bytes
Versions: 2
Compression:
Stored size: 509 Bytes
Contents
require "iron_cuke" require "base64" require "json" module IronWorker class Base def upload_if_needed(options) :uploaded_successfully end end module TestService module Schedule def schedule(name, data, options) 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.schedule(worker, options) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
iron_cuke-0.0.2alpha | lib/iron_cuke/test_service.rb |
iron_cuke-0.0.1 | lib/iron_cuke/test_service.rb |