Class: TelegramSupportBot::Configuration
- Inherits:
-
Object
- Object
- TelegramSupportBot::Configuration
- Defined in:
- lib/telegram_support_bot/configuration.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#adapter_options ⇒ Object
Returns the value of attribute adapter_options.
-
#auto_away_interval ⇒ Object
Returns the value of attribute auto_away_interval.
-
#auto_away_message ⇒ Object
Returns the value of attribute auto_away_message.
-
#ignore_unknown_commands ⇒ Object
Returns the value of attribute ignore_unknown_commands.
-
#support_chat_id ⇒ Object
Returns the value of attribute support_chat_id.
-
#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_support_bot/configuration.rb', line 8 def initialize @adapter = :telegram_bot @adapter_options = {} @welcome_message = 'Welcome! How can we help you?' @ignore_unknown_commands = true @auto_away_interval = 10 # seconds @auto_away_message = 'We are sorry, all operators are busy at the moment. Please wait' end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
5 6 7 |
# File 'lib/telegram_support_bot/configuration.rb', line 5 def adapter @adapter end |
#adapter_options ⇒ Object
Returns the value of attribute adapter_options.
5 6 7 |
# File 'lib/telegram_support_bot/configuration.rb', line 5 def @adapter_options end |
#auto_away_interval ⇒ Object
Returns the value of attribute auto_away_interval.
5 6 7 |
# File 'lib/telegram_support_bot/configuration.rb', line 5 def auto_away_interval @auto_away_interval end |
#auto_away_message ⇒ Object
Returns the value of attribute auto_away_message.
5 6 7 |
# File 'lib/telegram_support_bot/configuration.rb', line 5 def @auto_away_message end |
#ignore_unknown_commands ⇒ Object
Returns the value of attribute ignore_unknown_commands.
5 6 7 |
# File 'lib/telegram_support_bot/configuration.rb', line 5 def ignore_unknown_commands @ignore_unknown_commands end |
#support_chat_id ⇒ Object
Returns the value of attribute support_chat_id.
5 6 7 |
# File 'lib/telegram_support_bot/configuration.rb', line 5 def support_chat_id @support_chat_id end |
#welcome_message ⇒ Object
Returns the value of attribute welcome_message.
5 6 7 |
# File 'lib/telegram_support_bot/configuration.rb', line 5 def @welcome_message end |