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

      if ( (user_name = params.delete('user')) &&
           (repo_name = params.delete('repo')) )

        put_request("/repos/#{user_name}/#{repo_name}/notifications", params)
      elsif (thread_id = params.delete("id"))
        patch_request("/notifications/threads/#{thread_id}", params)
      else
        put_request('/notifications', params)
      end
    end
def mark(*args)
      arguments(args)
      params = arguments.params

      if ( (user_name = params.delete('user')) &&
           (repo_name = params.delete('repo')) )

        put_request("/repos/#{user_name}/#{repo_name}/notifications", params)
      elsif (thread_id = params.delete("id"))
        patch_request("/notifications/threads/#{thread_id}", params)
      else
        put_request('/notifications', params)
      end
    end
Mark as read

 Marking a notification as “read” removes it from the default view on GitHub.com.

 @see https://developer.github.com/v3/activity/notifications/#mark-as-read

 @param [Hash] params
 @option params [String] :last_read_at
   Describes the last point that notifications were checked.
   Anything updated since this time will not be updated.
   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.mark

 Mark notifications as read in a repository

 @see https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read-in-a-repository

 @example
  github.activity.notifications.mark user: 'user-name', repo: 'repo-name'

 Mark a thread as read

 @see https://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read

 @example
  github.activity.notifications.mark id: 'thread-id'

 @api public