Module: Nearmiss::Client::Notifications
- Defined in:
- lib/toolhound-ruby/client/notifications.rb
Overview
Methods for the Notifications API
Instance Method Summary collapse
-
#notifications(options = {}) ⇒ Array<Sawyer::Resource>
(also: #list_notifications)
List notifications for the current user.
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.
22 23 24 |
# File 'lib/toolhound-ruby/client/notifications.rb', line 22 def notifications( = {}) paginate "notifications", end |