class Github::Activity::Events

def performed(user_name, params={})


github.activity.events.performed 'user-name', :public => true { |event| ... }
github.activity.events.performed 'user-name', :public => true
github = Github.new
= Examples

List all public events that a user has performed

github.activity.events.performed 'user-name' { |event| ... }
github.activity.events.performed 'user-name'
github = Github.new
= Examples

events. Otherwise, you’ll only see public events.
If you are authenticated as the given user, you will see your private

List all events that a user has performed
def performed(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}/events#{public_events}", params)
  return response unless block_given?
  response.each { |el| yield el }
end