Module: Untied::Consumer

Defined in:
lib/untied-consumer.rb,
lib/untied-consumer/config.rb,
lib/untied-consumer/worker.rb,
lib/untied-consumer/railtie.rb,
lib/untied-consumer/version.rb,
lib/untied-consumer/observer.rb,
lib/untied-consumer/processor.rb

Defined Under Namespace

Classes: Config, Observer, Processor, Railtie, Worker

Constant Summary collapse

VERSION =
"0.0.5"

Class Method Summary collapse

Class Method Details

.configObject



12
13
14
# File 'lib/untied-consumer/config.rb', line 12

def self.config
  @config ||= Config.new
end

.configure {|config| ... } ⇒ Object

Yields:



7
8
9
10
# File 'lib/untied-consumer/config.rb', line 7

def self.configure(&block)
  yield(config) if block_given?
  Processor.observers = config.observers
end