class Github::Events
def performed(user_name, params={})
@github.events.performed 'user-name', :public => true { |event| ... }
@github.events.performed 'user-name', :public => true
@github = Github.new
= Examples
List all public events that a user has performed
@github.events.performed 'user-name' { |event| ... }
@github.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={}) _validate_presence_of user_name _normalize_params_keys(params) public_events = if params['public'] params.delete('public') '/public' end response = get("/users/#{user_name}/events#{public_events}", params) return response unless block_given? response.each { |el| yield el } end