Class: Telegram::BotManager::BotConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram/bot_manager/bot_configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBotConfiguration

Returns a new instance of BotConfiguration.



14
15
16
17
18
19
20
# File 'lib/telegram/bot_manager/bot_configuration.rb', line 14

def initialize
  @app_name = nil
  @locale = nil
  @localizer = nil
  @logger = BotLogger.new(@app_name)
  @bot = nil
end

Instance Attribute Details

#app_nameObject

Returns the value of attribute app_name.



7
8
9
# File 'lib/telegram/bot_manager/bot_configuration.rb', line 7

def app_name
  @app_name
end

#botObject

Returns the value of attribute bot.



7
8
9
# File 'lib/telegram/bot_manager/bot_configuration.rb', line 7

def bot
  @bot
end

#localeObject

Returns the value of attribute locale.



7
8
9
# File 'lib/telegram/bot_manager/bot_configuration.rb', line 7

def locale
  @locale
end

#localizerObject

Returns the value of attribute localizer.



7
8
9
# File 'lib/telegram/bot_manager/bot_configuration.rb', line 7

def localizer
  @localizer
end

#loggerObject

Returns the value of attribute logger.



7
8
9
# File 'lib/telegram/bot_manager/bot_configuration.rb', line 7

def logger
  @logger
end