{"action":"created","comment":{"url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/comments/32693440","id":32693440,"diff_hunk":"@@ -17,4 +17,17 @@ def count_all\n   def count_of(item_id)\n     contents[item_id.to_s]\n   end\n-end\n\\ No newline at end of file\n+\n+  def items_and_quantities\n+    contents.map do |item_id, quantity|\n+      [Item.find(item_id), quantity]\n+    end\n+  end\n+\n+  def total_price\n+    contents.map do |item_id, quantity|\n+      [Item.find(item_id).price, quantity]\n+    end.","path":"app/models/cart.rb","position":16,"original_position":16,"commit_id":"0dc0541ee3b4004b28da9691bc3d308770c6442d","original_commit_id":"0dc0541ee3b4004b28da9691bc3d308770c6442d","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Use 2 (not 0) spaces for indenting an expression spanning multiple lines.<br>Space missing after comma.<br>Surrounding space missing for operator '*'.","created_at":"2015-06-18T01:49:32Z","updated_at":"2015-06-18T01:49:32Z","html_url":"https://github.com/sallymacnicholas/dinner_dash/pull/38#discussion_r32693440","pull_request_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/comments/32693440"},"html":{"href":"https://github.com/sallymacnicholas/dinner_dash/pull/38#discussion_r32693440"},"pull_request":{"href":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/38","id":37964829,"html_url":"https://github.com/sallymacnicholas/dinner_dash/pull/38","diff_url":"https://github.com/sallymacnicholas/dinner_dash/pull/38.diff","patch_url":"https://github.com/sallymacnicholas/dinner_dash/pull/38.patch","issue_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues/38","number":38,"state":"open","locked":false,"title":"Add Cart Page items","user":{"login":"androidgrl","id":8076169,"avatar_url":"https://avatars.githubusercontent.com/u/8076169?v=3","gravatar_id":"","url":"https://api.github.com/users/androidgrl","html_url":"https://github.com/androidgrl","followers_url":"https://api.github.com/users/androidgrl/followers","following_url":"https://api.github.com/users/androidgrl/following{/other_user}","gists_url":"https://api.github.com/users/androidgrl/gists{/gist_id}","starred_url":"https://api.github.com/users/androidgrl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/androidgrl/subscriptions","organizations_url":"https://api.github.com/users/androidgrl/orgs","repos_url":"https://api.github.com/users/androidgrl/repos","events_url":"https://api.github.com/users/androidgrl/events{/privacy}","received_events_url":"https://api.github.com/users/androidgrl/received_events","type":"User","site_admin":false},"body":"I want the cart page to list:\r\nthe items ordered,\r\nthe quantity ordered,\r\nthe prices of each,\r\nand the total order price.","created_at":"2015-06-18T01:49:26Z","updated_at":"2015-06-18T01:49:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f8fa539c83b3b9726310561b6af85e919dda65e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/38/commits","review_comments_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/38/comments","review_comment_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues/38/comments","statuses_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/statuses/0dc0541ee3b4004b28da9691bc3d308770c6442d","head":{"label":"sallymacnicholas:cart-page","ref":"cart-page","sha":"0dc0541ee3b4004b28da9691bc3d308770c6442d","user":{"login":"sallymacnicholas","id":10360728,"avatar_url":"https://avatars.githubusercontent.com/u/10360728?v=3","gravatar_id":"","url":"https://api.github.com/users/sallymacnicholas","html_url":"https://github.com/sallymacnicholas","followers_url":"https://api.github.com/users/sallymacnicholas/followers","following_url":"https://api.github.com/users/sallymacnicholas/following{/other_user}","gists_url":"https://api.github.com/users/sallymacnicholas/gists{/gist_id}","starred_url":"https://api.github.com/users/sallymacnicholas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sallymacnicholas/subscriptions","organizations_url":"https://api.github.com/users/sallymacnicholas/orgs","repos_url":"https://api.github.com/users/sallymacnicholas/repos","events_url":"https://api.github.com/users/sallymacnicholas/events{/privacy}","received_events_url":"https://api.github.com/users/sallymacnicholas/received_events","type":"User","site_admin":false},"repo":{"id":37474175,"name":"dinner_dash","full_name":"sallymacnicholas/dinner_dash","owner":{"login":"sallymacnicholas","id":10360728,"avatar_url":"https://avatars.githubusercontent.com/u/10360728?v=3","gravatar_id":"","url":"https://api.github.com/users/sallymacnicholas","html_url":"https://github.com/sallymacnicholas","followers_url":"https://api.github.com/users/sallymacnicholas/followers","following_url":"https://api.github.com/users/sallymacnicholas/following{/other_user}","gists_url":"https://api.github.com/users/sallymacnicholas/gists{/gist_id}","starred_url":"https://api.github.com/users/sallymacnicholas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sallymacnicholas/subscriptions","organizations_url":"https://api.github.com/users/sallymacnicholas/orgs","repos_url":"https://api.github.com/users/sallymacnicholas/repos","events_url":"https://api.github.com/users/sallymacnicholas/events{/privacy}","received_events_url":"https://api.github.com/users/sallymacnicholas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sallymacnicholas/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/sallymacnicholas/dinner_dash","forks_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/forks","keys_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/teams","hooks_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/events","assignees_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/tags","blobs_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/subscription","commits_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/merges","archive_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/downloads","issues_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/releases{/id}","created_at":"2015-06-15T15:36:31Z","updated_at":"2015-06-16T21:40:15Z","pushed_at":"2015-06-18T01:49:27Z","git_url":"git://github.com/sallymacnicholas/dinner_dash.git","ssh_url":"git@github.com:sallymacnicholas/dinner_dash.git","clone_url":"https://github.com/sallymacnicholas/dinner_dash.git","svn_url":"https://github.com/sallymacnicholas/dinner_dash","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":22,"forks":0,"open_issues":22,"watchers":0,"default_branch":"master"}},"base":{"label":"sallymacnicholas:master","ref":"master","sha":"a6d79167f8b25c603dc373c738bebac1d77e6748","user":{"login":"sallymacnicholas","id":10360728,"avatar_url":"https://avatars.githubusercontent.com/u/10360728?v=3","gravatar_id":"","url":"https://api.github.com/users/sallymacnicholas","html_url":"https://github.com/sallymacnicholas","followers_url":"https://api.github.com/users/sallymacnicholas/followers","following_url":"https://api.github.com/users/sallymacnicholas/following{/other_user}","gists_url":"https://api.github.com/users/sallymacnicholas/gists{/gist_id}","starred_url":"https://api.github.com/users/sallymacnicholas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sallymacnicholas/subscriptions","organizations_url":"https://api.github.com/users/sallymacnicholas/orgs","repos_url":"https://api.github.com/users/sallymacnicholas/repos","events_url":"https://api.github.com/users/sallymacnicholas/events{/privacy}","received_events_url":"https://api.github.com/users/sallymacnicholas/received_events","type":"User","site_admin":false},"repo":{"id":37474175,"name":"dinner_dash","full_name":"sallymacnicholas/dinner_dash","owner":{"login":"sallymacnicholas","id":10360728,"avatar_url":"https://avatars.githubusercontent.com/u/10360728?v=3","gravatar_id":"","url":"https://api.github.com/users/sallymacnicholas","html_url":"https://github.com/sallymacnicholas","followers_url":"https://api.github.com/users/sallymacnicholas/followers","following_url":"https://api.github.com/users/sallymacnicholas/following{/other_user}","gists_url":"https://api.github.com/users/sallymacnicholas/gists{/gist_id}","starred_url":"https://api.github.com/users/sallymacnicholas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sallymacnicholas/subscriptions","organizations_url":"https://api.github.com/users/sallymacnicholas/orgs","repos_url":"https://api.github.com/users/sallymacnicholas/repos","events_url":"https://api.github.com/users/sallymacnicholas/events{/privacy}","received_events_url":"https://api.github.com/users/sallymacnicholas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sallymacnicholas/dinner_dash","description":"","fork":false,"url":"https://api.github.com/repos/sallymacnicholas/dinner_dash","forks_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/forks","keys_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/teams","hooks_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/hooks","issue_events_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues/events{/number}","events_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/events","assignees_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/assignees{/user}","branches_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/branches{/branch}","tags_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/tags","blobs_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/refs{/sha}","trees_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/statuses/{sha}","languages_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/languages","stargazers_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/stargazers","contributors_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/contributors","subscribers_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/subscribers","subscription_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/subscription","commits_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/commits{/sha}","git_commits_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/git/commits{/sha}","comments_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/comments{/number}","issue_comment_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues/comments{/number}","contents_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/contents/{+path}","compare_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/merges","archive_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/downloads","issues_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues{/number}","pulls_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls{/number}","milestones_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/milestones{/number}","notifications_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/labels{/name}","releases_url":"https://api.github.com/repos/sallymacnicholas/dinner_dash/releases{/id}","created_at":"2015-06-15T15:36:31Z","updated_at":"2015-06-16T21:40:15Z","pushed_at":"2015-06-18T01:49:27Z","git_url":"git://github.com/sallymacnicholas/dinner_dash.git","ssh_url":"git@github.com:sallymacnicholas/dinner_dash.git","clone_url":"https://github.com/sallymacnicholas/dinner_dash.git","svn_url":"https://github.com/sallymacnicholas/dinner_dash","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":22,"forks":0,"open_issues":22,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/38"},"html":{"href":"https://github.com/sallymacnicholas/dinner_dash/pull/38"},"issue":{"href":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues/38"},"comments":{"href":"https://api.github.com/repos/sallymacnicholas/dinner_dash/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sallymacnicholas/dinner_dash/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/sallymacnicholas/dinner_dash/statuses/0dc0541ee3b4004b28da9691bc3d308770c6442d"}}}}