Class: Gitlab::SlashCommands::ApplicationHelp
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Gitlab::SlashCommands::ApplicationHelp
- Defined in:
- lib/gitlab/slash_commands/application_help.rb
Constant Summary
Constants inherited from BaseCommand
Instance Attribute Summary
Attributes inherited from BaseCommand
#chat_name, #current_user, #params, #project
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(project, params) ⇒ ApplicationHelp
constructor
A new instance of ApplicationHelp.
Methods inherited from BaseCommand
allowed?, available?, can?, #collection, help_message, match
Constructor Details
#initialize(project, params) ⇒ ApplicationHelp
Returns a new instance of ApplicationHelp.
6 7 8 9 |
# File 'lib/gitlab/slash_commands/application_help.rb', line 6 def initialize(project, params) @project = project @params = params end |
Instance Method Details
#execute ⇒ Object
11 12 13 14 15 |
# File 'lib/gitlab/slash_commands/application_help.rb', line 11 def execute Gitlab::SlashCommands::Presenters::Help .new(project, commands, params) .present(trigger, params[:text]) end |