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

add_helpers, includes_helpers, redirect_legacy_paths, url_helpers

Constructor Details

#initialize(project, commands) ⇒ Help

Returns a new instance of Help.


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

def initialize(project, commands)
  @project = project
  @commands = commands
end

Instance Method Details

#present(trigger, text) ⇒ Object


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

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