class Github::Activity::Events
def received(user_name, params={})
github.events.received 'user-name', :public => true { |event| ... }
github.events.received 'user-name', :public => true
github = Github.new
= Examples
List all public events that a user has received
github.events.received 'user-name' { |event| ... }
github.events.received 'user-name'
github = Github.new
= Examples
Otherwise, you’ll only see public events.
If you are authenticated as the given user, you will see private events.
These are events that you’ve received by watching repos and following users.
List all events that a user has received
def received(user_name, params={}) assert_presence_of user_name normalize! params public_events = if params['public'] params.delete('public') '/public' end response = get_request("/users/#{user_name}/received_events#{public_events}", params) return response unless block_given? response.each { |el| yield el } end