Class: Ghub::Endpoints::Repositories::Actions::Show
- Inherits:
-
Object
- Object
- Ghub::Endpoints::Repositories::Actions::Show
- Includes:
- Pipeable
- Defined in:
- lib/ghub/endpoints/repositories/actions/show.rb
Overview
Handles a repository show action.
Instance Method Summary collapse
Instance Method Details
#call(owner, id, **parameters) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/ghub/endpoints/repositories/actions/show.rb', line 15 def call owner, id, **parameters pipe path.show(owner, id), insert(parameters), to(api, :get), try(:parse, catch: JSON::ParserError), validate(response, as: :to_h), to(model, :for) end |