Class: TxghQueue::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/txgh-queue/config.rb

Constant Summary collapse

DEFAULT_BACKEND =
'null'

Class Method Summary collapse

Class Method Details

.backendObject



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

.optionsObject



18
19
20
# File 'lib/txgh-queue/config.rb', line 18

def options
  raw_config.fetch(:options, {})
end

.processing_enabled?Boolean

Returns:

  • (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