Class: TelegramBotEngine::Configuration
- Inherits:
-
Object
- Object
- TelegramBotEngine::Configuration
- Defined in:
- lib/telegram_bot_engine/configuration.rb
Instance Attribute Summary collapse
-
#admin_enabled ⇒ Object
Returns the value of attribute admin_enabled.
-
#allowed_usernames ⇒ Object
Returns the value of attribute allowed_usernames.
-
#event_logging ⇒ Object
Returns the value of attribute event_logging.
-
#event_retention_days ⇒ Object
Returns the value of attribute event_retention_days.
-
#unauthorized_message ⇒ Object
Returns the value of attribute unauthorized_message.
-
#welcome_message ⇒ Object
Returns the value of attribute welcome_message.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 14 15 |
# File 'lib/telegram_bot_engine/configuration.rb', line 8 def initialize @allowed_usernames = nil @admin_enabled = true = "Sorry, you're not authorized to use this bot." = "Welcome %{username}! Available commands:\n%{commands}" @event_logging = true @event_retention_days = 30 end |
Instance Attribute Details
#admin_enabled ⇒ Object
Returns the value of attribute admin_enabled.
5 6 7 |
# File 'lib/telegram_bot_engine/configuration.rb', line 5 def admin_enabled @admin_enabled end |
#allowed_usernames ⇒ Object
Returns the value of attribute allowed_usernames.
5 6 7 |
# File 'lib/telegram_bot_engine/configuration.rb', line 5 def allowed_usernames @allowed_usernames end |
#event_logging ⇒ Object
Returns the value of attribute event_logging.
5 6 7 |
# File 'lib/telegram_bot_engine/configuration.rb', line 5 def event_logging @event_logging end |
#event_retention_days ⇒ Object
Returns the value of attribute event_retention_days.
5 6 7 |
# File 'lib/telegram_bot_engine/configuration.rb', line 5 def event_retention_days @event_retention_days end |
#unauthorized_message ⇒ Object
Returns the value of attribute unauthorized_message.
5 6 7 |
# File 'lib/telegram_bot_engine/configuration.rb', line 5 def end |
#welcome_message ⇒ Object
Returns the value of attribute welcome_message.
5 6 7 |
# File 'lib/telegram_bot_engine/configuration.rb', line 5 def end |