Class: Ghub::Endpoints::Branches::Protection::Root

Inherits:
Object
  • Object
show all
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

#showObject



12
# File 'lib/ghub/endpoints/branches/protection/root.rb', line 12

def show(...) = show_action.call(...)

#updateObject



14
# File 'lib/ghub/endpoints/branches/protection/root.rb', line 14

def update(...) = update_action.call(...)