{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/comments/83011601","pull_request_review_id":3872819,"id":83011601,"diff_hunk":"@@ -0,0 +1,31 @@\n+require_relative 'menu'\n+class Order\n+  attr_reader :order, :total_prize\n+\n+  def initialize\n+    @menu = Menu.new\n+    @order = []\n+    @total_prize = 0\n+  end\n+\n+  def add_chicken\n+    @order << @menu.dishes_list[0]\n+    @total_prize += @menu.dishes_list[0][:prize]\n+  end\n+\n+  def add_lamb\n+    @order << @menu.dishes_list[1]\n+    @total_prize += @menu.dishes_list[1][:prize]\n+  end\n+\n+  def add_beef\n+    @order << @menu.dishes_list[2]\n+    @total_prize += @menu.dishes_list[2][:prize]\n+  end\n+\n+  def check_order\n+    @order << {total: \"£#{@total_prize}\"}","path":"lib/order.rb","position":27,"original_position":27,"commit_id":"bc5cbde417cb822294b4f3272b4afeda3f1a4726","original_commit_id":"bc5cbde417cb822294b4f3272b4afeda3f1a4726","user":{"login":"maryrosecook","id":2716,"avatar_url":"https://avatars.githubusercontent.com/u/2716?v=3","gravatar_id":"","url":"https://api.github.com/users/maryrosecook","html_url":"https://github.com/maryrosecook","followers_url":"https://api.github.com/users/maryrosecook/followers","following_url":"https://api.github.com/users/maryrosecook/following{/other_user}","gists_url":"https://api.github.com/users/maryrosecook/gists{/gist_id}","starred_url":"https://api.github.com/users/maryrosecook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maryrosecook/subscriptions","organizations_url":"https://api.github.com/users/maryrosecook/orgs","repos_url":"https://api.github.com/users/maryrosecook/repos","events_url":"https://api.github.com/users/maryrosecook/events{/privacy}","received_events_url":"https://api.github.com/users/maryrosecook/received_events","type":"User","site_admin":false},"body":"Could `total_prize` be calculated on the fly?  So remove the `@total_prize` attribute that is updated when new things are added to the order.  Replace it with a `total_prize` method that goes through the items in `@order` and counts up the total price?","created_at":"2016-10-12T14:03:47Z","updated_at":"2016-10-12T14:03:55Z","html_url":"https://github.com/makersacademy/takeaway-challenge/pull/515#discussion_r83011601","pull_request_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/515","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/comments/83011601"},"html":{"href":"https://github.com/makersacademy/takeaway-challenge/pull/515#discussion_r83011601"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/515"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/515","id":88577228,"html_url":"https://github.com/makersacademy/takeaway-challenge/pull/515","diff_url":"https://github.com/makersacademy/takeaway-challenge/pull/515.diff","patch_url":"https://github.com/makersacademy/takeaway-challenge/pull/515.patch","issue_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/515","number":515,"state":"open","locked":false,"title":"Weekend2_challenge","user":{"login":"Juli0GT","id":20701393,"avatar_url":"https://avatars.githubusercontent.com/u/20701393?v=3","gravatar_id":"","url":"https://api.github.com/users/Juli0GT","html_url":"https://github.com/Juli0GT","followers_url":"https://api.github.com/users/Juli0GT/followers","following_url":"https://api.github.com/users/Juli0GT/following{/other_user}","gists_url":"https://api.github.com/users/Juli0GT/gists{/gist_id}","starred_url":"https://api.github.com/users/Juli0GT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Juli0GT/subscriptions","organizations_url":"https://api.github.com/users/Juli0GT/orgs","repos_url":"https://api.github.com/users/Juli0GT/repos","events_url":"https://api.github.com/users/Juli0GT/events{/privacy}","received_events_url":"https://api.github.com/users/Juli0GT/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-09T10:58:37Z","updated_at":"2016-10-12T14:03:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e9635ad296fd328dbcea64a37019d7c9df6e2104","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/515/commits","review_comments_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/515/comments","review_comment_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/515/comments","statuses_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/statuses/bc5cbde417cb822294b4f3272b4afeda3f1a4726","head":{"label":"Juli0GT:master","ref":"master","sha":"bc5cbde417cb822294b4f3272b4afeda3f1a4726","user":{"login":"Juli0GT","id":20701393,"avatar_url":"https://avatars.githubusercontent.com/u/20701393?v=3","gravatar_id":"","url":"https://api.github.com/users/Juli0GT","html_url":"https://github.com/Juli0GT","followers_url":"https://api.github.com/users/Juli0GT/followers","following_url":"https://api.github.com/users/Juli0GT/following{/other_user}","gists_url":"https://api.github.com/users/Juli0GT/gists{/gist_id}","starred_url":"https://api.github.com/users/Juli0GT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Juli0GT/subscriptions","organizations_url":"https://api.github.com/users/Juli0GT/orgs","repos_url":"https://api.github.com/users/Juli0GT/repos","events_url":"https://api.github.com/users/Juli0GT/events{/privacy}","received_events_url":"https://api.github.com/users/Juli0GT/received_events","type":"User","site_admin":false},"repo":{"id":70325493,"name":"takeaway-challenge","full_name":"Juli0GT/takeaway-challenge","owner":{"login":"Juli0GT","id":20701393,"avatar_url":"https://avatars.githubusercontent.com/u/20701393?v=3","gravatar_id":"","url":"https://api.github.com/users/Juli0GT","html_url":"https://github.com/Juli0GT","followers_url":"https://api.github.com/users/Juli0GT/followers","following_url":"https://api.github.com/users/Juli0GT/following{/other_user}","gists_url":"https://api.github.com/users/Juli0GT/gists{/gist_id}","starred_url":"https://api.github.com/users/Juli0GT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Juli0GT/subscriptions","organizations_url":"https://api.github.com/users/Juli0GT/orgs","repos_url":"https://api.github.com/users/Juli0GT/repos","events_url":"https://api.github.com/users/Juli0GT/events{/privacy}","received_events_url":"https://api.github.com/users/Juli0GT/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Juli0GT/takeaway-challenge","description":"Use the Twilio Gem to order food","fork":true,"url":"https://api.github.com/repos/Juli0GT/takeaway-challenge","forks_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/forks","keys_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/teams","hooks_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/hooks","issue_events_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/events","assignees_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/tags","blobs_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/languages","stargazers_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/stargazers","contributors_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/contributors","subscribers_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/subscribers","subscription_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/subscription","commits_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/merges","archive_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/downloads","issues_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/labels{/name}","releases_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/releases{/id}","deployments_url":"https://api.github.com/repos/Juli0GT/takeaway-challenge/deployments","created_at":"2016-10-08T11:03:20Z","updated_at":"2016-10-08T11:03:21Z","pushed_at":"2016-10-10T09:31:39Z","git_url":"git://github.com/Juli0GT/takeaway-challenge.git","ssh_url":"git@github.com:Juli0GT/takeaway-challenge.git","clone_url":"https://github.com/Juli0GT/takeaway-challenge.git","svn_url":"https://github.com/Juli0GT/takeaway-challenge","homepage":null,"size":70,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"makersacademy:master","ref":"master","sha":"a3ff8bc01e47eb3d05b017ec647f5339de523619","user":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":27006189,"name":"takeaway-challenge","full_name":"makersacademy/takeaway-challenge","owner":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/makersacademy/takeaway-challenge","description":"Use the Twilio Gem to order food","fork":false,"url":"https://api.github.com/repos/makersacademy/takeaway-challenge","forks_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/forks","keys_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/teams","hooks_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/hooks","issue_events_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/events","assignees_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/tags","blobs_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/languages","stargazers_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/stargazers","contributors_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/contributors","subscribers_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/subscribers","subscription_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/subscription","commits_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/merges","archive_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/downloads","issues_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/labels{/name}","releases_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/releases{/id}","deployments_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/deployments","created_at":"2014-11-22T17:19:46Z","updated_at":"2016-09-06T13:35:53Z","pushed_at":"2016-10-12T02:29:36Z","git_url":"git://github.com/makersacademy/takeaway-challenge.git","ssh_url":"git@github.com:makersacademy/takeaway-challenge.git","clone_url":"https://github.com/makersacademy/takeaway-challenge.git","svn_url":"https://github.com/makersacademy/takeaway-challenge","homepage":null,"size":10565,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":504,"mirror_url":null,"open_issues_count":54,"forks":504,"open_issues":54,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/515"},"html":{"href":"https://github.com/makersacademy/takeaway-challenge/pull/515"},"issue":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/515"},"comments":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/515/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/515/comments"},"review_comment":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/515/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/statuses/bc5cbde417cb822294b4f3272b4afeda3f1a4726"}}}}
{"actor":{"display_login":"maryrosecook"}}