Class: CodecovApi::Api::Branches
- Defined in:
- lib/codecov_api/api/branches.rb
Instance Method Summary collapse
- #delete(branch) ⇒ Object
- #get(branch) ⇒ Object
-
#initialize(owner, repo) ⇒ Branches
constructor
A new instance of Branches.
- #list ⇒ Object
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 |
#list ⇒ Object
11 12 13 |
# File 'lib/codecov_api/api/branches.rb', line 11 def list get_request('/branches') end |