{"action":"created","comment":{"url":"https://api.github.com/repos/danReynolds/SupermarKit/pulls/comments/81455815","pull_request_review_id":2436702,"id":81455815,"diff_hunk":"@@ -11,9 +11,11 @@ class Grocery < ActiveRecord::Base\n   validates :name, presence: true\n \n   def total_price_or_estimated\n-    items.inject(Money.new(0)) do |acc, i|\n-      acc += i.total_price_or_estimated(self)\n-    end\n+    Money.new(\n+      groceries_items.inject(0) do |acc, grocery_item|\n+        acc += grocery_item.price_or_estimated","path":"app/models/grocery.rb","position":9,"original_position":9,"commit_id":"6246d15b231f9377306fad729a3d2769ba628716","original_commit_id":"6246d15b231f9377306fad729a3d2769ba628716","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Useless assignment to variable - acc. Use just operator +.","created_at":"2016-10-01T18:41:48Z","updated_at":"2016-10-01T18:41:49Z","html_url":"https://github.com/danReynolds/SupermarKit/pull/117#discussion_r81455815","pull_request_url":"https://api.github.com/repos/danReynolds/SupermarKit/pulls/117","_links":{"self":{"href":"https://api.github.com/repos/danReynolds/SupermarKit/pulls/comments/81455815"},"html":{"href":"https://github.com/danReynolds/SupermarKit/pull/117#discussion_r81455815"},"pull_request":{"href":"https://api.github.com/repos/danReynolds/SupermarKit/pulls/117"}}},"pull_request":{"url":"https://api.github.com/repos/danReynolds/SupermarKit/pulls/117","id":86681141,"html_url":"https://github.com/danReynolds/SupermarKit/pull/117","diff_url":"https://github.com/danReynolds/SupermarKit/pull/117.diff","patch_url":"https://github.com/danReynolds/SupermarKit/pull/117.patch","issue_url":"https://api.github.com/repos/danReynolds/SupermarKit/issues/117","number":117,"state":"open","locked":false,"title":"Feature/item units","user":{"login":"danReynolds","id":2192930,"avatar_url":"https://avatars.githubusercontent.com/u/2192930?v=3","gravatar_id":"","url":"https://api.github.com/users/danReynolds","html_url":"https://github.com/danReynolds","followers_url":"https://api.github.com/users/danReynolds/followers","following_url":"https://api.github.com/users/danReynolds/following{/other_user}","gists_url":"https://api.github.com/users/danReynolds/gists{/gist_id}","starred_url":"https://api.github.com/users/danReynolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danReynolds/subscriptions","organizations_url":"https://api.github.com/users/danReynolds/orgs","repos_url":"https://api.github.com/users/danReynolds/repos","events_url":"https://api.github.com/users/danReynolds/events{/privacy}","received_events_url":"https://api.github.com/users/danReynolds/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-26T04:47:28Z","updated_at":"2016-10-01T18:41:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/danReynolds/SupermarKit/pulls/117/commits","review_comments_url":"https://api.github.com/repos/danReynolds/SupermarKit/pulls/117/comments","review_comment_url":"https://api.github.com/repos/danReynolds/SupermarKit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/danReynolds/SupermarKit/issues/117/comments","statuses_url":"https://api.github.com/repos/danReynolds/SupermarKit/statuses/6246d15b231f9377306fad729a3d2769ba628716","head":{"label":"danReynolds:feature/itemUnits","ref":"feature/itemUnits","sha":"6246d15b231f9377306fad729a3d2769ba628716","user":{"login":"danReynolds","id":2192930,"avatar_url":"https://avatars.githubusercontent.com/u/2192930?v=3","gravatar_id":"","url":"https://api.github.com/users/danReynolds","html_url":"https://github.com/danReynolds","followers_url":"https://api.github.com/users/danReynolds/followers","following_url":"https://api.github.com/users/danReynolds/following{/other_user}","gists_url":"https://api.github.com/users/danReynolds/gists{/gist_id}","starred_url":"https://api.github.com/users/danReynolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danReynolds/subscriptions","organizations_url":"https://api.github.com/users/danReynolds/orgs","repos_url":"https://api.github.com/users/danReynolds/repos","events_url":"https://api.github.com/users/danReynolds/events{/privacy}","received_events_url":"https://api.github.com/users/danReynolds/received_events","type":"User","site_admin":false},"repo":{"id":27952521,"name":"SupermarKit","full_name":"danReynolds/SupermarKit","owner":{"login":"danReynolds","id":2192930,"avatar_url":"https://avatars.githubusercontent.com/u/2192930?v=3","gravatar_id":"","url":"https://api.github.com/users/danReynolds","html_url":"https://github.com/danReynolds","followers_url":"https://api.github.com/users/danReynolds/followers","following_url":"https://api.github.com/users/danReynolds/following{/other_user}","gists_url":"https://api.github.com/users/danReynolds/gists{/gist_id}","starred_url":"https://api.github.com/users/danReynolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danReynolds/subscriptions","organizations_url":"https://api.github.com/users/danReynolds/orgs","repos_url":"https://api.github.com/users/danReynolds/repos","events_url":"https://api.github.com/users/danReynolds/events{/privacy}","received_events_url":"https://api.github.com/users/danReynolds/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danReynolds/SupermarKit","description":"SupermarKit - a grocery tracking and management app","fork":false,"url":"https://api.github.com/repos/danReynolds/SupermarKit","forks_url":"https://api.github.com/repos/danReynolds/SupermarKit/forks","keys_url":"https://api.github.com/repos/danReynolds/SupermarKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danReynolds/SupermarKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danReynolds/SupermarKit/teams","hooks_url":"https://api.github.com/repos/danReynolds/SupermarKit/hooks","issue_events_url":"https://api.github.com/repos/danReynolds/SupermarKit/issues/events{/number}","events_url":"https://api.github.com/repos/danReynolds/SupermarKit/events","assignees_url":"https://api.github.com/repos/danReynolds/SupermarKit/assignees{/user}","branches_url":"https://api.github.com/repos/danReynolds/SupermarKit/branches{/branch}","tags_url":"https://api.github.com/repos/danReynolds/SupermarKit/tags","blobs_url":"https://api.github.com/repos/danReynolds/SupermarKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danReynolds/SupermarKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danReynolds/SupermarKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/danReynolds/SupermarKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danReynolds/SupermarKit/statuses/{sha}","languages_url":"https://api.github.com/repos/danReynolds/SupermarKit/languages","stargazers_url":"https://api.github.com/repos/danReynolds/SupermarKit/stargazers","contributors_url":"https://api.github.com/repos/danReynolds/SupermarKit/contributors","subscribers_url":"https://api.github.com/repos/danReynolds/SupermarKit/subscribers","subscription_url":"https://api.github.com/repos/danReynolds/SupermarKit/subscription","commits_url":"https://api.github.com/repos/danReynolds/SupermarKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/danReynolds/SupermarKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/danReynolds/SupermarKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/danReynolds/SupermarKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/danReynolds/SupermarKit/contents/{+path}","compare_url":"https://api.github.com/repos/danReynolds/SupermarKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danReynolds/SupermarKit/merges","archive_url":"https://api.github.com/repos/danReynolds/SupermarKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danReynolds/SupermarKit/downloads","issues_url":"https://api.github.com/repos/danReynolds/SupermarKit/issues{/number}","pulls_url":"https://api.github.com/repos/danReynolds/SupermarKit/pulls{/number}","milestones_url":"https://api.github.com/repos/danReynolds/SupermarKit/milestones{/number}","notifications_url":"https://api.github.com/repos/danReynolds/SupermarKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danReynolds/SupermarKit/labels{/name}","releases_url":"https://api.github.com/repos/danReynolds/SupermarKit/releases{/id}","deployments_url":"https://api.github.com/repos/danReynolds/SupermarKit/deployments","created_at":"2014-12-13T06:56:32Z","updated_at":"2016-05-16T13:47:36Z","pushed_at":"2016-10-01T18:41:38Z","git_url":"git://github.com/danReynolds/SupermarKit.git","ssh_url":"git@github.com:danReynolds/SupermarKit.git","clone_url":"https://github.com/danReynolds/SupermarKit.git","svn_url":"https://github.com/danReynolds/SupermarKit","homepage":"https://supermarkit.io","size":101387,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"open_issues_count":12,"forks":5,"open_issues":12,"watchers":4,"default_branch":"master"}},"base":{"label":"danReynolds:master","ref":"master","sha":"c30a7c2185e92243ffe347c100db40c1fa2ce453","user":{"login":"danReynolds","id":2192930,"avatar_url":"https://avatars.githubusercontent.com/u/2192930?v=3","gravatar_id":"","url":"https://api.github.com/users/danReynolds","html_url":"https://github.com/danReynolds","followers_url":"https://api.github.com/users/danReynolds/followers","following_url":"https://api.github.com/users/danReynolds/following{/other_user}","gists_url":"https://api.github.com/users/danReynolds/gists{/gist_id}","starred_url":"https://api.github.com/users/danReynolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danReynolds/subscriptions","organizations_url":"https://api.github.com/users/danReynolds/orgs","repos_url":"https://api.github.com/users/danReynolds/repos","events_url":"https://api.github.com/users/danReynolds/events{/privacy}","received_events_url":"https://api.github.com/users/danReynolds/received_events","type":"User","site_admin":false},"repo":{"id":27952521,"name":"SupermarKit","full_name":"danReynolds/SupermarKit","owner":{"login":"danReynolds","id":2192930,"avatar_url":"https://avatars.githubusercontent.com/u/2192930?v=3","gravatar_id":"","url":"https://api.github.com/users/danReynolds","html_url":"https://github.com/danReynolds","followers_url":"https://api.github.com/users/danReynolds/followers","following_url":"https://api.github.com/users/danReynolds/following{/other_user}","gists_url":"https://api.github.com/users/danReynolds/gists{/gist_id}","starred_url":"https://api.github.com/users/danReynolds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danReynolds/subscriptions","organizations_url":"https://api.github.com/users/danReynolds/orgs","repos_url":"https://api.github.com/users/danReynolds/repos","events_url":"https://api.github.com/users/danReynolds/events{/privacy}","received_events_url":"https://api.github.com/users/danReynolds/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danReynolds/SupermarKit","description":"SupermarKit - a grocery tracking and management app","fork":false,"url":"https://api.github.com/repos/danReynolds/SupermarKit","forks_url":"https://api.github.com/repos/danReynolds/SupermarKit/forks","keys_url":"https://api.github.com/repos/danReynolds/SupermarKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danReynolds/SupermarKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danReynolds/SupermarKit/teams","hooks_url":"https://api.github.com/repos/danReynolds/SupermarKit/hooks","issue_events_url":"https://api.github.com/repos/danReynolds/SupermarKit/issues/events{/number}","events_url":"https://api.github.com/repos/danReynolds/SupermarKit/events","assignees_url":"https://api.github.com/repos/danReynolds/SupermarKit/assignees{/user}","branches_url":"https://api.github.com/repos/danReynolds/SupermarKit/branches{/branch}","tags_url":"https://api.github.com/repos/danReynolds/SupermarKit/tags","blobs_url":"https://api.github.com/repos/danReynolds/SupermarKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danReynolds/SupermarKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danReynolds/SupermarKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/danReynolds/SupermarKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danReynolds/SupermarKit/statuses/{sha}","languages_url":"https://api.github.com/repos/danReynolds/SupermarKit/languages","stargazers_url":"https://api.github.com/repos/danReynolds/SupermarKit/stargazers","contributors_url":"https://api.github.com/repos/danReynolds/SupermarKit/contributors","subscribers_url":"https://api.github.com/repos/danReynolds/SupermarKit/subscribers","subscription_url":"https://api.github.com/repos/danReynolds/SupermarKit/subscription","commits_url":"https://api.github.com/repos/danReynolds/SupermarKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/danReynolds/SupermarKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/danReynolds/SupermarKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/danReynolds/SupermarKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/danReynolds/SupermarKit/contents/{+path}","compare_url":"https://api.github.com/repos/danReynolds/SupermarKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danReynolds/SupermarKit/merges","archive_url":"https://api.github.com/repos/danReynolds/SupermarKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danReynolds/SupermarKit/downloads","issues_url":"https://api.github.com/repos/danReynolds/SupermarKit/issues{/number}","pulls_url":"https://api.github.com/repos/danReynolds/SupermarKit/pulls{/number}","milestones_url":"https://api.github.com/repos/danReynolds/SupermarKit/milestones{/number}","notifications_url":"https://api.github.com/repos/danReynolds/SupermarKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danReynolds/SupermarKit/labels{/name}","releases_url":"https://api.github.com/repos/danReynolds/SupermarKit/releases{/id}","deployments_url":"https://api.github.com/repos/danReynolds/SupermarKit/deployments","created_at":"2014-12-13T06:56:32Z","updated_at":"2016-05-16T13:47:36Z","pushed_at":"2016-10-01T18:41:38Z","git_url":"git://github.com/danReynolds/SupermarKit.git","ssh_url":"git@github.com:danReynolds/SupermarKit.git","clone_url":"https://github.com/danReynolds/SupermarKit.git","svn_url":"https://github.com/danReynolds/SupermarKit","homepage":"https://supermarkit.io","size":101387,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"open_issues_count":12,"forks":5,"open_issues":12,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/danReynolds/SupermarKit/pulls/117"},"html":{"href":"https://github.com/danReynolds/SupermarKit/pull/117"},"issue":{"href":"https://api.github.com/repos/danReynolds/SupermarKit/issues/117"},"comments":{"href":"https://api.github.com/repos/danReynolds/SupermarKit/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/danReynolds/SupermarKit/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/danReynolds/SupermarKit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/danReynolds/SupermarKit/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/danReynolds/SupermarKit/statuses/6246d15b231f9377306fad729a3d2769ba628716"}}}}
{"actor":{"display_login":"houndci-bot"}}