Class: Gitlab::SlashCommands::Presenters::Help

Inherits:
Base
  • Object
show all
Defined in:
lib/gitlab/slash_commands/presenters/help.rb

Instance Method Summary collapse

Methods inherited from Base

#display_errors

Methods included from Routing

includes_helpers, redirect_legacy_paths, url_helpers

Constructor Details

#initialize(project, commands, params = {}) ⇒ Help

Returns a new instance of Help.



7
8
9
10
11
# File 'lib/gitlab/slash_commands/presenters/help.rb', line 7

def initialize(project, commands, params = {})
  @project = project
  @commands = commands
  @params = params
end

Instance Method Details

#present(trigger, text) ⇒ Object



13
14
15
# File 'lib/gitlab/slash_commands/presenters/help.rb', line 13

def present(trigger, text)
  ephemeral_response(text: help_message(trigger, text))
end