Method: Gitlab::Client::UserSnippets#user_snippet

Defined in:
lib/gitlab/client/user_snippets.rb

#user_snippet(id) ⇒ Gitlab::ObjectifiedHash

Get a single snippet.

Examples:

Gitlab.user_snippet(1)

Parameters:

  • id (Integer)

    ID of snippet to retrieve.

Returns:

[View source]

24
25
26
# File 'lib/gitlab/client/user_snippets.rb', line 24

def user_snippet(id)
  get("/snippets/#{id}")
end