def list(*args)
      arguments(args, required: [:user, :repo, :ref])
      params = arguments.params
      user, repo, ref = arguments.user, arguments.repo, arguments.ref

      response = if params.delete('combined')
        get_request("/repos/#{user}/#{repo}/commits/#{ref}/status", params)
      else
        get_request("/repos/#{user}/#{repo}/commits/#{ref}/statuses", params)
      end
      return response unless block_given?
      response.each { |el| yield el }
    end
def list(*args)
      arguments(args, required: [:user, :repo, :ref])
      params = arguments.params
      user, repo, ref = arguments.user, arguments.repo, arguments.ref

      response = if params.delete('combined')
        get_request("/repos/#{user}/#{repo}/commits/#{ref}/status", params)
      else
        get_request("/repos/#{user}/#{repo}/commits/#{ref}/statuses", params)
      end
      return response unless block_given?
      response.each { |el| yield el }
    end
:nodoc:
 List Statuses for a specific SHA

 @param [String] :ref
   Ref to fetch the status for. It can be a SHA, a branch name,
   or a tag name.

 @example
   github = Github.new
   github.repos.statuses.list 'user-name', 'repo-name', 'ref'
   github.repos.statuses.list 'user-name', 'repo-name', 'ref' { |status| ... }

 Get the combined Status for a specific Ref

 @example
   github = Github.new
   github.repos.statuses.list 'user', 'repo', 'ref', combined: true

 @api public