method

yank_api_request

Importance_0
v2_2_9 - Show latest stable - 0 notes - Class: YankCommand
yank_api_request(method, version, platform, api) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/commands/yank_command.rb, line 80
  def yank_api_request(method, version, platform, api)
    name = get_one_gem_name
    response = rubygems_api_request(method, api) do |request|
      request.add_field("Authorization", api_key)

      data = {
        'gem_name' => name,
        'version' => version,
      }
      data['platform'] = platform if platform

      request.set_form_data data
    end
    say response.body
  end
Register or log in to add new notes.