Class: Ghub::Endpoints::Branches::Protection::Root
- Inherits:
-
Object
- Object
- Ghub::Endpoints::Branches::Protection::Root
- Defined in:
- lib/ghub/endpoints/branches/protection/root.rb
Overview
Provides access to the branch protection API endpoint.
Instance Method Summary collapse
Instance Method Details
#destroy(owner, repository, branch) ⇒ Object
16 17 18 |
# File 'lib/ghub/endpoints/branches/protection/root.rb', line 16 def destroy owner, repository, branch api.delete "repos/#{owner}/#{repository}/branches/#{branch}/protection" end |
#show ⇒ Object
12 |
# File 'lib/ghub/endpoints/branches/protection/root.rb', line 12 def show(...) = show_action.call(...) |
#update ⇒ Object
14 |
# File 'lib/ghub/endpoints/branches/protection/root.rb', line 14 def update(...) = update_action.call(...) |