module Nearmiss::Client::Notifications

Methods for the Notifications API

Public Instance Methods

list_notifications(options = {})
Alias for: notifications
notifications(options = {}) click to toggle source

List notifications for the current user

If user is not supplied, repositories for the current

authenticated user are returned.

@note If the user provided is a GitHub organization, only the

organization's public repositories will be listed. For retrieving
organization repositories the {Organizations#organization_repositories}
method should be used instead.

@see developer.github.com/v3/repos/#list-your-repositories @see developer.github.com/v3/repos/#list-user-repositories @param user [Integer, String] Optional GitHub user login or id for which

to list repos.

@return [Array<Sawyer::Resource>] List of projects

# File lib/nearmiss-ruby/client/notifications.rb, line 22
def notifications(options = {})
  paginate "notifications", options
end
Also aliased as: list_notifications