Sha256: 29c9d691a955bf5e2d765f1a6c788c7303cafd24e59fb624333a815a655ea85a

Contents?: true

Size: 1015 Bytes

Versions: 39

Compression:

Stored size: 1015 Bytes

Contents

module Nearmiss
  class Client

    # Methods for the Notifications API
    #
    module Notifications

      # 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 https://developer.github.com/v3/repos/#list-your-repositories
      # @see https://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
      def notifications(options = {})
        paginate "notifications", options
      end
      alias :list_notifications :notifications



    end
  end
end

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
toolhound-ruby-1.0.17 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.16 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.15 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.14 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.13 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.12 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.11 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.10 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.9 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.8 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.7 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.6 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.5 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.4 lib/toolhound-ruby/client/notifications.rb
nearmiss-ruby-1.0.4 lib/nearmiss-ruby/client/notifications.rb
nearmiss-ruby-1.0.3 lib/nearmiss-ruby/client/notifications.rb
nearmiss-ruby-1.0.2 lib/nearmiss-ruby/client/notifications.rb
nearmiss-ruby-1.0.1 lib/nearmiss-ruby/client/notifications.rb
nearmiss-ruby-1.0.0 lib/nearmiss-ruby/client/notifications.rb