class Github::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={}) _validate_presence_of user_name _normalize_params_keys(params) public_events = if params['public'] params.delete('public') '/public' end response = get("/users/#{user_name}/received_events#{public_events}", params) return response unless block_given? response.each { |el| yield el } end