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.37 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.36 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.35 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.34 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.33 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.32 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.31 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.30 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.29 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.28 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.27 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.26 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.25 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.24 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.23 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.22 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.21 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.20 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.19 lib/toolhound-ruby/client/notifications.rb
toolhound-ruby-1.0.18 lib/toolhound-ruby/client/notifications.rb