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.
-
#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.
7 8 9 10 11 12 |
# File 'lib/telegram_bot_engine/configuration.rb', line 7 def initialize @allowed_usernames = nil @admin_enabled = true @unauthorized_message = "Sorry, you're not authorized to use this bot." @welcome_message = "Welcome %{username}! Available commands:\n%{commands}" 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 |
#unauthorized_message ⇒ Object
Returns the value of attribute unauthorized_message.
5 6 7 |
# File 'lib/telegram_bot_engine/configuration.rb', line 5 def @unauthorized_message end |
#welcome_message ⇒ Object
Returns the value of attribute welcome_message.
5 6 7 |
# File 'lib/telegram_bot_engine/configuration.rb', line 5 def @welcome_message end |