Module: Telegram::LoggerBot

Defined in:
lib/telegram/loggerbot.rb,
lib/telegram/loggerbot/logger.rb,
lib/telegram/loggerbot/version.rb,
lib/telegram/loggerbot/loggerbot.rb,
lib/telegram/loggerbot/configuration.rb

Defined Under Namespace

Classes: Configuration, Logger

Constant Summary collapse

TokenMissed =
Class.new(ArgumentError)
ChatIdMissed =
Class.new(ArgumentError)
UnknownParams =
Class.new(ArgumentError)
VERSION =
'0.0.4'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



15
16
17
# File 'lib/telegram/loggerbot.rb', line 15

def self.configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



19
20
21
# File 'lib/telegram/loggerbot.rb', line 19

def self.configure
  yield(configuration)
end

.new(args = {}) ⇒ Object



3
4
5
# File 'lib/telegram/loggerbot/loggerbot.rb', line 3

def self.new(args = {})
  Telegram::LoggerBot::Logger.new(args)
end