Sha256: 1f372843d514f402813f51614ffa834731f7d5f876b9c17e261ed231d5a9df19
Contents?: true
Size: 398 Bytes
Versions: 1
Compression:
Stored size: 398 Bytes
Contents
module Tennis::Worker::Generic::Options SNEAKER_QUEUE_OPTIONS = %i(exchange).freeze def set_option(symbol, value) if symbol == :queue_name worker.from_queue(value, worker.queue_opts) else options[symbol] = value if SNEAKER_QUEUE_OPTIONS.include?(symbol) worker.queue_opts[symbol] = value end end end def options @_options ||= {} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tennis-jobs-0.3.1 | lib/tennis/worker/generic/options.rb |