Module: Msgr
- Defined in:
- lib/msgr.rb,
lib/msgr/cli.rb,
lib/msgr/route.rb,
lib/msgr/client.rb,
lib/msgr/errors.rb,
lib/msgr/routes.rb,
lib/msgr/binding.rb,
lib/msgr/channel.rb,
lib/msgr/logging.rb,
lib/msgr/message.rb,
lib/msgr/railtie.rb,
lib/msgr/version.rb,
lib/msgr/consumer.rb,
lib/msgr/test_pool.rb,
lib/msgr/connection.rb,
lib/msgr/dispatcher.rb
Defined Under Namespace
Modules: Logging, VERSION
Classes: Binding, CLI, CausedByError, Channel, Client, Connection, ConnectionError, Consumer, Dispatcher, Message, Railtie, Route, Routes, TestPool
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.client ⇒ Object
36
37
38
|
# File 'lib/msgr.rb', line 36
def client
@client ||= Msgr::Client.new config
end
|
.config ⇒ Object
32
33
34
|
# File 'lib/msgr.rb', line 32
def config
@config ||= {}
end
|
.logger ⇒ Object
40
41
42
43
44
45
46
47
|
# File 'lib/msgr.rb', line 40
def logger
if @logger.nil?
@logger = Logger.new $stdout
@logger.level = Logger::Severity::INFO
end
@logger
end
|
Class Method Details
.start ⇒ Object
49
50
51
52
|
# File 'lib/msgr.rb', line 49
def start
client.start
client
end
|