Class: CodecovApi::Api::Branches

Inherits:
Base
  • Object
show all
Defined in:
lib/codecov_api/api/branches.rb

Instance Method Summary collapse

Constructor Details

#initialize(owner, repo) ⇒ Branches

Returns a new instance of Branches.



6
7
8
9
# File 'lib/codecov_api/api/branches.rb', line 6

def initialize(owner, repo)
  @owner = owner
  @repo = repo
end

Instance Method Details

#delete(branch) ⇒ Object



19
20
21
# File 'lib/codecov_api/api/branches.rb', line 19

def delete(branch)
  raise 'delete method not implemented'
end

#get(branch) ⇒ Object



15
16
17
# File 'lib/codecov_api/api/branches.rb', line 15

def get(branch)
  get_request("/branch/#{branch}")
end

#listObject



11
12
13
# File 'lib/codecov_api/api/branches.rb', line 11

def list
  get_request('/branches')
end