Class: GemCP::Tools::GetOwners

Inherits:
Base
  • Object
show all
Defined in:
lib/gemcp/tools/get_owners.rb

Overview

Fetch public owner/maintainer data for a gem.

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from GemCP::Tools::Base

Instance Method Details

#call(name:) ⇒ Hash

Returns MCP response.

Parameters:

  • name (String)

    gem name

Returns:

  • (Hash)

    MCP response



16
17
18
# File 'lib/gemcp/tools/get_owners.rb', line 16

def call(name:)
  render(with_errors { { name: name, owners: client.owners(name) } })
end