Sha256: 44d7eb91edc0496c8f99755d2acc06ce07e407ce694aa5068bb9295a960e00b1
Contents?: true
Size: 343 Bytes
Versions: 14
Compression:
Stored size: 343 Bytes
Contents
require 'yaml' def create(who, *args) options = args.last.is_a?(Hash) ? args.pop : {} case who when :message name = args.shift klass = Vx::Message.const_get name klass.test_message options when :job message = options[:message] || create(:message, 'PerformJob', options) Vx::Worker::Job.new message end end
Version data entries
14 entries across 14 versions & 1 rubygems