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
8 9 10 11 12 |
# File 'lib/txgh-queue/config.rb', line 8 def backend TxghQueue::Backends.get( raw_config.fetch(:backend, DEFAULT_BACKEND) ) end |
.options ⇒ Object
18 19 20 |
# File 'lib/txgh-queue/config.rb', line 18 def raw_config.fetch(:options, {}) end |
.processing_enabled? ⇒ Boolean
14 15 16 |
# File 'lib/txgh-queue/config.rb', line 14 def processing_enabled? raw_config.fetch(:processing_enabled, true) end |
.reset! ⇒ Object
22 23 24 |
# File 'lib/txgh-queue/config.rb', line 22 def reset! @raw_config = nil end |