Method: Gitlab::Client::Snippets#snippet_content
- Defined in:
- lib/gitlab/client/snippets.rb
#snippet_content(project, id) ⇒ Gitlab::ObjectifiedHash
Returns raw project snippet content as plain text.
88 89 90 91 92 93 |
# File 'lib/gitlab/client/snippets.rb', line 88 def snippet_content(project, id) get("/projects/#{url_encode project}/snippets/#{id}/raw", format: nil, headers: { Accept: 'text/plain' }, parser: ::Gitlab::Request::Parser) end |