class Github::Repos::Downloads

def create(user_name, repo_name, params={})


"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(user_name, repo_name, params={})
  set :user => user_name, :repo => repo_name
  assert_presence_of user, repo
  normalize! params
  filter! VALID_DOWNLOAD_PARAM_NAMES, params
  assert_required_keys(REQUIRED_PARAMS, params)
  post_request("/repos/#{user}/#{repo}/downloads", params)
end