Method: Gitlab::Client::Wikis#wiki

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

#wiki(project, slug) ⇒ Gitlab::ObjectifiedHash

Get a wiki page for a given project.

Examples:

Gitlab.wiki(3, 'home')

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • slug (String)

    The slug (a unique string) of the wiki page

Returns:

[View source]

29
30
31
# File 'lib/gitlab/client/wikis.rb', line 29

def wiki(project, slug)
  get("/projects/#{url_encode project}/wikis/#{slug}")
end