class Github::Repos::Downloads

def create(*args)


"content_type" => "text/plain"
"description" => "Latest release",
"size" => 114034,
"name" => "new_file.jpg",
github.repos.downloads.create 'user-name', 'repo-name',
github = Github.new
= Examples

* :content_type - Optional string
* :description - Optional string
* :size - Required number - size of file in bytes.
* :name - Required string - name of the file that is being created.
= Inputs

Response from this method is to be used in #upload method.
You must first create a new download resource using this method.
Creating a new download is a two step process.
def create(*args)
  arguments(args, :required => [:user, :repo]) do
    sift VALID_DOWNLOAD_PARAM_NAMES
    assert_required REQUIRED_PARAMS
  end
  params = arguments.params
  post_request("/repos/#{user}/#{repo}/downloads", params)
end