def list(*args)
      arguments(args)
      params = arguments.params

      response = if ( (user_name = params.delete('user')) &&
                      (repo_name = params.delete('repo')) )
        get_request("/repos/#{user_name}/#{repo_name}/notifications", params)
      else
        get_request('/notifications', params)
      end
      return response unless block_given?
      response.each { |el| yield el }
    end
def list(*args)
      arguments(args)
      params = arguments.params

      response = if ( (user_name = params.delete('user')) &&
                      (repo_name = params.delete('repo')) )
        get_request("/repos/#{user_name}/#{repo_name}/notifications", params)
      else
        get_request('/notifications', params)
      end
      return response unless block_given?
      response.each { |el| yield el }
    end
List your notifications

 List all notifications for the current user, grouped by repository.

 @see https://developer.github.com/v3/activity/notifications/#list-your-notifications

 @param [Hash] params
 @option params [Boolean] :all
   If true, show notifications marked as read.
   Default: false
 @option params [Boolean] :participating
   If true, only shows notifications in which the user
   is directly participating or mentioned. Default: false
 @option params [String] :since
   Filters out any notifications updated before the given time.
   This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
   Default: Time.now

 @example
   github = Github.new oauth_token: 'token'
   github.activity.notifications.list

 List your notifications in a repository

 @see https://developer.github.com/v3/activity/notifications/#list-your-notifications-in-a-repository

 @example
  github = Github.new
  github.activity.notifications.list user: 'user-name', repo: 'repo-name'

 @api public