Class: GemCP::Tools::GetVersion
- Defined in:
- lib/gemcp/tools/get_version.rb
Overview
Fetch metadata for a specific gem version and optional platform.
Instance Method Summary collapse
-
#call(name:, version:, platform: nil) ⇒ Hash
MCP response.
Methods inherited from Base
Constructor Details
This class inherits a constructor from GemCP::Tools::Base
Instance Method Details
#call(name:, version:, platform: nil) ⇒ Hash
Returns MCP response.
20 21 22 |
# File 'lib/gemcp/tools/get_version.rb', line 20 def call(name:, version:, platform: nil) render(with_errors { client.version(name, version, platform: platform) }) end |