Class: Gitlab::SlashCommands::Presenters::Help
- Defined in:
- lib/gitlab/slash_commands/presenters/help.rb
Instance Method Summary collapse
-
#initialize(project, commands, params = {}) ⇒ Help
constructor
A new instance of Help.
- #present(trigger, text) ⇒ Object
Methods inherited from Base
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: (trigger, text)) end |