Method: LabClient::Files#show
- Defined in:
- lib/labclient/files/show.rb
#show(project_id, file_path, ref = :master, kind = nil) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/labclient/files/show.rb', line 34 def show(project_id, file_path, ref = :master, kind = nil) kind = case kind when :raw '/raw' when :blame '/blame' end # GET /projects/:id/repository/files/:file_path project_id = format_id(project_id) client.request(:get, "projects/#{project_id}/repository/files/#{file_path}#{kind}", nil, ref: ref) end |