Class: CodebaseApi::Commit

Inherits:
Object
  • Object
show all
Defined in:
lib/codebase_api/commit.rb

Class Method Summary collapse

Class Method Details

.show(project, repo_name, ref) ⇒ Object

show all commits on a specified ref



7
8
9
# File 'lib/codebase_api/commit.rb', line 7

def show(project, repo_name, ref)
	CodebaseApi::Request.request("#{project}/#{repo_name}/commits/#{ref}")
end

.show_path(project, repo_name, ref, path) ⇒ Object

show all commits on a specified ref for a path



12
13
14
# File 'lib/codebase_api/commit.rb', line 12

def show_path(project, repo_name, ref, path)
	CodebaseApi::Request.request("#{project}/#{repo_name}/commits/#{ref}/#{path}")
end