Class: GemCP::Tools::GetGem
- Defined in:
- lib/gemcp/tools/get_gem.rb
Overview
Fetch metadata for the latest version of a gem.
Instance Method Summary collapse
-
#call(name:) ⇒ Hash
MCP response.
Methods inherited from Base
Constructor Details
This class inherits a constructor from GemCP::Tools::Base
Instance Method Details
#call(name:) ⇒ Hash
Returns MCP response.
16 17 18 |
# File 'lib/gemcp/tools/get_gem.rb', line 16 def call(name:) render(with_errors { client.gem(name) }) end |