Method: Postqueue::Queue#processing
- Defined in:
- lib/postqueue/queue.rb
#processing(processing = nil) ⇒ Object
sets or return the processing mode. This must be one of :async, :sync or :verify
18 19 20 21 22 23 24 25 |
# File 'lib/postqueue/queue.rb', line 18 def processing(processing = nil) return @processing if processing.nil? unless VALID_PROCESSING_VALUES.include?(processing) raise ArgumentError, "Invalid processing value, must be one of #{VALID_PROCESSING_VALUES.inspect}" end @processing = processing end |