Module: Nearmiss::Client::Notifications

Defined in:
lib/toolhound-ruby/client/notifications.rb

Overview

Methods for the Notifications API

Instance Method Summary collapse

Instance Method Details

#notifications(options = {}) ⇒ Array<Sawyer::Resource> Also known as: list_notifications

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.

List notifications for the current user

If user is not supplied, repositories for the current

authenticated user are returned.

Parameters:

  • user (Integer, String)

    Optional GitHub user login or id for which to list repos.

Returns:

  • (Array<Sawyer::Resource>)

    List of projects

See Also:



22
23
24
# File 'lib/toolhound-ruby/client/notifications.rb', line 22

def notifications(options = {})
  paginate "notifications", options
end