method

yank_api_request

Importance_0
v2_6_3 - 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 69
  def yank_api_request(method, version, platform, api)
    name = get_one_gem_name
    response = rubygems_api_request(method, api, host) 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.