class Github::Client::Activity::Starring
def starred(*args)
- Api: - public
Options Hash:
(**params)
-
:direction
(String
) -- -
:sort
(String
) --
Parameters:
-
params
(Hash
) --
Other tags:
- See: https://developer.github.com/v3/activity/starring/#list-repositories-being-starred -
def starred(*args) arguments(args) params = arguments.params response = if (user_name = params.delete('user')) get_request("/users/#{user_name}/starred", params) else get_request("/user/starred", params) end return response unless block_given? response.each { |el| yield el } end