{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/comments/219705576","pull_request_review_id":157945922,"id":219705576,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTcwNTU3Ng==","diff_hunk":"@@ -0,0 +1,52 @@\n+require_relative 'menu'\n+require_relative 'sms'\n+\n+class Takeaway\n+  attr_reader :customer_order, :total, :sms\n+  @menu = []\n+\n+  def initialize(menu = Menu.new, sms_obj)\n+    @customer_order = []\n+    @menu = menu\n+    @total = 0.0\n+    @sms = sms_obj || Sms.new\n+  end\n+\n+  def show_menu\n+    @menu.show_menu\n+  end\n+","path":"lib/takeaway.rb","position":18,"original_position":18,"commit_id":"ee443ba86da9adbc6f2163706a64e217d2b3bc97","original_commit_id":"ee443ba86da9adbc6f2163706a64e217d2b3bc97","user":{"login":"EdwardAndress","id":7963978,"node_id":"MDQ6VXNlcjc5NjM5Nzg=","avatar_url":"https://avatars1.githubusercontent.com/u/7963978?v=4","gravatar_id":"","url":"https://api.github.com/users/EdwardAndress","html_url":"https://github.com/EdwardAndress","followers_url":"https://api.github.com/users/EdwardAndress/followers","following_url":"https://api.github.com/users/EdwardAndress/following{/other_user}","gists_url":"https://api.github.com/users/EdwardAndress/gists{/gist_id}","starred_url":"https://api.github.com/users/EdwardAndress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdwardAndress/subscriptions","organizations_url":"https://api.github.com/users/EdwardAndress/orgs","repos_url":"https://api.github.com/users/EdwardAndress/repos","events_url":"https://api.github.com/users/EdwardAndress/events{/privacy}","received_events_url":"https://api.github.com/users/EdwardAndress/received_events","type":"User","site_admin":false},"body":"I think there are one or two places where you create instance vars, for things which could be local vars.\r\n\r\nFor example, @customer_order could be a local var, I think, since you pass it into the `#verify_order` method as an argument.\r\n\r\nDo you know how local variables and instance variables behave differently?","created_at":"2018-09-23T17:26:55Z","updated_at":"2018-09-23T17:26:55Z","html_url":"https://github.com/makersacademy/takeaway-challenge/pull/1072#discussion_r219705576","pull_request_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/1072","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/comments/219705576"},"html":{"href":"https://github.com/makersacademy/takeaway-challenge/pull/1072#discussion_r219705576"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/1072"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/1072","id":215842883,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1ODQyODgz","html_url":"https://github.com/makersacademy/takeaway-challenge/pull/1072","diff_url":"https://github.com/makersacademy/takeaway-challenge/pull/1072.diff","patch_url":"https://github.com/makersacademy/takeaway-challenge/pull/1072.patch","issue_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/1072","number":1072,"state":"open","locked":false,"title":"Takeaway Challenge completed","user":{"login":"nazzkadri","id":32517494,"node_id":"MDQ6VXNlcjMyNTE3NDk0","avatar_url":"https://avatars0.githubusercontent.com/u/32517494?v=4","gravatar_id":"","url":"https://api.github.com/users/nazzkadri","html_url":"https://github.com/nazzkadri","followers_url":"https://api.github.com/users/nazzkadri/followers","following_url":"https://api.github.com/users/nazzkadri/following{/other_user}","gists_url":"https://api.github.com/users/nazzkadri/gists{/gist_id}","starred_url":"https://api.github.com/users/nazzkadri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazzkadri/subscriptions","organizations_url":"https://api.github.com/users/nazzkadri/orgs","repos_url":"https://api.github.com/users/nazzkadri/repos","events_url":"https://api.github.com/users/nazzkadri/events{/privacy}","received_events_url":"https://api.github.com/users/nazzkadri/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-16T20:17:49Z","updated_at":"2018-09-23T17:26:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f58eaab03b86dd6bee70f17f8ed871aefb46be2e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/1072/commits","review_comments_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/1072/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/1072/comments","statuses_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/statuses/ee443ba86da9adbc6f2163706a64e217d2b3bc97","head":{"label":"nazzkadri:master","ref":"master","sha":"ee443ba86da9adbc6f2163706a64e217d2b3bc97","user":{"login":"nazzkadri","id":32517494,"node_id":"MDQ6VXNlcjMyNTE3NDk0","avatar_url":"https://avatars0.githubusercontent.com/u/32517494?v=4","gravatar_id":"","url":"https://api.github.com/users/nazzkadri","html_url":"https://github.com/nazzkadri","followers_url":"https://api.github.com/users/nazzkadri/followers","following_url":"https://api.github.com/users/nazzkadri/following{/other_user}","gists_url":"https://api.github.com/users/nazzkadri/gists{/gist_id}","starred_url":"https://api.github.com/users/nazzkadri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazzkadri/subscriptions","organizations_url":"https://api.github.com/users/nazzkadri/orgs","repos_url":"https://api.github.com/users/nazzkadri/repos","events_url":"https://api.github.com/users/nazzkadri/events{/privacy}","received_events_url":"https://api.github.com/users/nazzkadri/received_events","type":"User","site_admin":false},"repo":{"id":148214301,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgyMTQzMDE=","name":"takeaway-challenge","full_name":"nazzkadri/takeaway-challenge","private":false,"owner":{"login":"nazzkadri","id":32517494,"node_id":"MDQ6VXNlcjMyNTE3NDk0","avatar_url":"https://avatars0.githubusercontent.com/u/32517494?v=4","gravatar_id":"","url":"https://api.github.com/users/nazzkadri","html_url":"https://github.com/nazzkadri","followers_url":"https://api.github.com/users/nazzkadri/followers","following_url":"https://api.github.com/users/nazzkadri/following{/other_user}","gists_url":"https://api.github.com/users/nazzkadri/gists{/gist_id}","starred_url":"https://api.github.com/users/nazzkadri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazzkadri/subscriptions","organizations_url":"https://api.github.com/users/nazzkadri/orgs","repos_url":"https://api.github.com/users/nazzkadri/repos","events_url":"https://api.github.com/users/nazzkadri/events{/privacy}","received_events_url":"https://api.github.com/users/nazzkadri/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nazzkadri/takeaway-challenge","description":"Use the Twilio Gem to order food","fork":true,"url":"https://api.github.com/repos/nazzkadri/takeaway-challenge","forks_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/forks","keys_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/teams","hooks_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/hooks","issue_events_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/events","assignees_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/tags","blobs_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/languages","stargazers_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/stargazers","contributors_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/contributors","subscribers_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/subscribers","subscription_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/subscription","commits_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/merges","archive_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/downloads","issues_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/labels{/name}","releases_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/releases{/id}","deployments_url":"https://api.github.com/repos/nazzkadri/takeaway-challenge/deployments","created_at":"2018-09-10T20:22:20Z","updated_at":"2018-09-16T20:13:03Z","pushed_at":"2018-09-16T20:13:01Z","git_url":"git://github.com/nazzkadri/takeaway-challenge.git","ssh_url":"git@github.com:nazzkadri/takeaway-challenge.git","clone_url":"https://github.com/nazzkadri/takeaway-challenge.git","svn_url":"https://github.com/nazzkadri/takeaway-challenge","homepage":null,"size":121,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"makersacademy:master","ref":"master","sha":"68755f9d8fe78b6acce5fb6335301658da248c11","user":{"login":"makersacademy","id":3636186,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MzYxODY=","avatar_url":"https://avatars2.githubusercontent.com/u/3636186?v=4","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,"node_id":"MDEwOlJlcG9zaXRvcnkyNzAwNjE4OQ==","name":"takeaway-challenge","full_name":"makersacademy/takeaway-challenge","private":false,"owner":{"login":"makersacademy","id":3636186,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MzYxODY=","avatar_url":"https://avatars2.githubusercontent.com/u/3636186?v=4","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},"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":"2018-08-21T19:59:09Z","pushed_at":"2018-09-23T12:05:16Z","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":104,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":994,"mirror_url":null,"archived":false,"open_issues_count":177,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":994,"open_issues":177,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/1072"},"html":{"href":"https://github.com/makersacademy/takeaway-challenge/pull/1072"},"issue":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/1072"},"comments":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/1072/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/1072/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/1072/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/statuses/ee443ba86da9adbc6f2163706a64e217d2b3bc97"}},"author_association":"NONE"}}
{"actor":{"display_login":"EdwardAndress"}}