Class: TxghQueue::Config
- Inherits:
-
Object
- Object
- TxghQueue::Config
- Defined in:
- lib/txgh-queue/config.rb
Constant Summary collapse
- DEFAULT_BACKEND =
'null'
Class Method Summary collapse
Class Method Details
.backend ⇒ Object
9 10 11 12 13 |
# File 'lib/txgh-queue/config.rb', line 9 def backend TxghQueue::Backends.get( raw_config.fetch(:backend, DEFAULT_BACKEND) ) end |
.options ⇒ Object
19 20 21 |
# File 'lib/txgh-queue/config.rb', line 19 def raw_config.fetch(:options, {}) end |
.processing_enabled? ⇒ Boolean
15 16 17 |
# File 'lib/txgh-queue/config.rb', line 15 def processing_enabled? raw_config.fetch(:processing_enabled, true) end |
.reset! ⇒ Object
23 24 25 |
# File 'lib/txgh-queue/config.rb', line 23 def reset! @raw_config = nil end |