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



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

.optionsObject



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

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

.processing_enabled?Boolean

Returns:

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