Class: BotCommand
- Inherits:
-
Object
- Object
- BotCommand
- Defined in:
- lib/objects/bot_command.rb
Overview
This object represents a bot command
Instance Method Summary collapse
-
#command ⇒ Object
Text of the command, 1-32 characters.
-
#description ⇒ Object
Description of the command, 3-256 characters.
-
#initialize(bot) ⇒ BotCommand
constructor
:nodoc:.
Constructor Details
#initialize(bot) ⇒ BotCommand
:nodoc:
9 10 11 12 |
# File 'lib/objects/bot_command.rb', line 9 def initialize(bot) # :nodoc: @bot = bot freeze end |
Instance Method Details
#command ⇒ Object
Text of the command, 1-32 characters. Can contain only lowercase English letters, digits and underscores.
16 17 18 |
# File 'lib/objects/bot_command.rb', line 16 def command @bot.command end |
#description ⇒ Object
Description of the command, 3-256 characters.
21 22 23 |
# File 'lib/objects/bot_command.rb', line 21 def description @bot.description end |