Class: TelegramSupportBot::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/telegram_support_bot/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#adapterObject

Returns the value of attribute adapter.



5
6
7
# File 'lib/telegram_support_bot/configuration.rb', line 5

def adapter
  @adapter
end

#adapter_optionsObject

Returns the value of attribute adapter_options.



5
6
7
# File 'lib/telegram_support_bot/configuration.rb', line 5

def adapter_options
  @adapter_options
end

#auto_away_intervalObject

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_messageObject

Returns the value of attribute auto_away_message.



5
6
7
# File 'lib/telegram_support_bot/configuration.rb', line 5

def auto_away_message
  @auto_away_message
end

#ignore_unknown_commandsObject

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_idObject

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_messageObject

Returns the value of attribute welcome_message.



5
6
7
# File 'lib/telegram_support_bot/configuration.rb', line 5

def welcome_message
  @welcome_message
end