module Msgr

Attributes

client[W]
config[W]
logger[W]

Public Class Methods

client() click to toggle source
# File lib/msgr.rb, line 36
def client
  @client ||= Msgr::Client.new config
end
config() click to toggle source
# File lib/msgr.rb, line 32
def config
  @config ||= {}
end
logger() click to toggle source
# File lib/msgr.rb, line 40
def logger
  if @logger.nil?
    @logger = Logger.new $stdout
    @logger.level = Logger::Severity::INFO
  end

  @logger
end
start() click to toggle source
# File lib/msgr.rb, line 51
def start
  client.start
  client
end