class Github::Activity::Events
def received(*args)
github.activity.events.received 'user-name', :public => true { |event| ... }
github.activity.events.received 'user-name', :public => true
github = Github.new
= Examples
List all public events that a user has received
github.activity.events.received 'user-name' { |event| ... }
github.activity.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(*args) arguments(args, :required => [:user]) params = arguments.params public_events = if params['public'] params.delete('public') '/public' end response = get_request("/users/#{user}/received_events#{public_events}", params) return response unless block_given? response.each { |el| yield el } end