class Github::Client::Repos::Contents

def archive(*args)

Other tags:
    Api: - public

Parameters:
  • params (Hash) --

Other tags:
    Note: -
def archive(*args)
  arguments(args, required: [:user, :repo])
  params         = arguments.params
  archive_format = params.delete('archive_format') || 'tarball'
  ref            = params.delete('ref') || 'master'
  disable_redirects do
    response = get_request("/repos/#{arguments.user}/#{arguments.repo}/#{archive_format}/#{ref}", params)
    response.headers.location
  end
end