GitHub PullRequestReviewCommentEvent at 2014-05-28 14:43:09
Repository: bwapi
Actor: benSlaughter
Payload: {"comment":{"url":"https://api.github.com/repos/jonathanchrisp/bwapi/pulls/comments/13134339","id":13134339,"diff_hunk":"@@ -15,21 +28,28 @@ def notifications(opts = {})\n           get 'user/notifications', opts\n         end\n \n-        # Update users existing notifications\n+        # Update users existing notification\n         #\n-        # @param opts [Hash] options Hash of parameters\n-        # @option opts [Array] list User notifications to be edited\n-        # @return [Hashie::Mash] Updated user notifications\n-        def update_notification(opts = {})\n-          put 'user/notifications', opts\n+        # @param notification_id [Integer] Id of notification\n+        # @param opts [Hash] options hash of parameters\n+        # @option opts [Boolean] hidden if the notification is hidden from users\n+        # @option opts [Boolean] read if the notification has been read\n+        # @option opts [String] body the body text of the notification\n+        # @option opts [String] subject the subject text of the notification\n+        # @option opts [String] type the type of notification\n+        # @return [Hashie::Mash] User notification\n+        def update_notification(notification_id, opts = {})\n+          put \"user/notifications/#{notification_id}\", opts\n         end\n \n-        # Delete a users existing notification\n+        # Patch a users existing notification\n         #\n         # @param notification_id [Integer] Id of notification\n+        # @param opts [Hash] options Hash of parameters\n+        # @option opts [Boolean] read if the notification has been read\n         # @return [Hashie::Mash] Deleted user notifications","path":"lib/bwapi/client/user/notifications.rb","position":50,"original_position":50,"commit_id":"091fcfba10e89629cae240e12b763e165bd5a90d","original_commit_id":"091fcfba10e89629cae240e12b763e165bd5a90d","user":{"login":"benSlaughter","id":2961607,"avatar_url":"https://avatars.githubusercontent.com/u/2961607?","gravatar_id":"84f0417f79c16bccf94905972050f989","url":"https://api.github.com/users/benSlaughter","html_url":"https://github.com/benSlaughter","followers_url":"https://api.github.com/users/benSlaughter/followers","following_url":"https://api.github.com/users/benSlaughter/following{/other_user}","gists_url":"https://api.github.com/users/benSlaughter/gists{/gist_id}","starred_url":"https://api.github.com/users/benSlaughter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benSlaughter/subscriptions","organizations_url":"https://api.github.com/users/benSlaughter/orgs","repos_url":"https://api.github.com/users/benSlaughter/repos","events_url":"https://api.github.com/users/benSlaughter/events{/privacy}","received_events_url":"https://api.github.com/users/benSlaughter/received_events","type":"User","site_admin":false},"body":"fixed","created_at":"2014-05-28T14:43:09Z","updated_at":"2014-05-28T14:43:09Z","html_url":"https://github.com/jonathanchrisp/bwapi/pull/115#discussion_r13134339","pull_request_url":"https://api.github.com/repos/jonathanchrisp/bwapi/pulls/115","_links":{"self":{"href":"https://api.github.com/repos/jonathanchrisp/bwapi/pulls/comments/13134339"},"html":{"href":"https://github.com/jonathanchrisp/bwapi/pull/115#discussion_r13134339"},"pull_request":{"href":"https://api.github.com/repos/jonathanchrisp/bwapi/pulls/115"}}}}