class Github::Client::Activity::Notifications
def mark(*args)
- Api: - public
Other tags:
- See: https://developer.github.com/v3/activity/notifications/#mark-a-thread-as-read -
See: https://developer.github.com/v3/activity/notifications/#mark-notifications-as-read-in-a-repository -
See: https://developer.github.com/v3/activity/notifications/#mark-as-read -
Options Hash:
(**params)
-
:last_read_at
(String
) --
Parameters:
-
params
(Hash
) --
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