Class: Ghub::Endpoints::Branches::Protection::Actions::Show
- Inherits:
-
Object
- Object
- Ghub::Endpoints::Branches::Protection::Actions::Show
- Includes:
- Pipeable
- Defined in:
- lib/ghub/endpoints/branches/protection/actions/show.rb
Overview
Handles a branch projection show action.
Instance Method Summary collapse
Instance Method Details
#call(owner, repository, branch, **parameters) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/ghub/endpoints/branches/protection/actions/show.rb', line 16 def call owner, repository, branch, **parameters pipe( api.get( "repos/#{owner}/#{repository}/branches/#{branch}/protection", **parameters ), try(:parse, catch: JSON::ParserError), validate(response, as: :to_h), to(model, :for) ) end |