class CodecovApi::Api::Branches

Public Class Methods

new(owner, repo) click to toggle source
# File lib/codecov_api/api/branches.rb, line 6
def initialize(owner, repo)
  @owner = owner
  @repo = repo
end

Public Instance Methods

delete(branch) click to toggle source
# File lib/codecov_api/api/branches.rb, line 19
def delete(branch)
  raise 'delete method not implemented'
end
get(branch) click to toggle source
# File lib/codecov_api/api/branches.rb, line 15
def get(branch)
  get_request("/branch/#{branch}")
end
list() click to toggle source
# File lib/codecov_api/api/branches.rb, line 11
def list
  get_request('/branches')
end

Protected Instance Methods

base_path() click to toggle source
# File lib/codecov_api/api/branches.rb, line 25
def base_path
  "/#{@owner}/#{@repo}"
end