class Github::Client::Activity::Events
def received(*args)
- Api: - public
Other tags:
- See: https://developer.github.com/v3/activity/events/#list-public-events-that-a-user-has-received -
See: https://developer.github.com/v3/activity/events/#list-events-that-a-user-has-received -
def received(*args) arguments(args, required: [:user]) params = arguments.params public_events = if params['public'] params.delete('public') '/public' end response = get_request("/users/#{arguments.user}/received_events#{public_events}", params) return response unless block_given? response.each { |el| yield el } end