{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/comments/76768078","id":76768078,"diff_hunk":"@@ -0,0 +1,108 @@\n+require_relative 'menu.rb'\n+require_relative 'order.rb'\n+require 'twilio-ruby' # put your own credentials here\n+require_relative 'SMS.rb'\n+\n+class UserInterface\n+  def initialize\n+    @menu = Menu.new\n+    @order = Order.new(menu) #maybe move to order start?\n+    interactive_menu\n+  end\n+\n+  def initialize_message\n+    puts \"Welcome to James' takeaway service.\"\n+    puts \"Please select from the following options to begin ordering\"\n+  end\n+\n+  def interactive_menu\n+    initialize_message\n+    loop do\n+      print_options\n+      selection = gets.chomp\n+      user_selection(selection)\n+    end\n+  end\n+\n+  def print_options\n+    puts \"1. See the menu\"\n+    puts \"2. Start your order\"\n+    puts \"9. Quit\"\n+  end\n+\n+  def user_selection(selection)\n+    case selection\n+      when \"1\"\n+        print_menu\n+      when \"2\"","path":"lib/user_interface.rb","position":37,"original_position":37,"commit_id":"512c2af28ef04c86430744cdfbd835c772ce96ca","original_commit_id":"512c2af28ef04c86430744cdfbd835c772ce96ca","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":"Style/CaseIndentation: Indent `when` as deep as `case`. (https://github.com/bbatsov/ruby-style-guide#indent-when-to-case)","created_at":"2016-08-30T10:17:45Z","updated_at":"2016-08-30T10:17:45Z","html_url":"https://github.com/makersacademy/takeaway-challenge/pull/491#discussion_r76768078","pull_request_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/491","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/comments/76768078"},"html":{"href":"https://github.com/makersacademy/takeaway-challenge/pull/491#discussion_r76768078"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/491"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/491","id":83227531,"html_url":"https://github.com/makersacademy/takeaway-challenge/pull/491","diff_url":"https://github.com/makersacademy/takeaway-challenge/pull/491.diff","patch_url":"https://github.com/makersacademy/takeaway-challenge/pull/491.patch","issue_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/491","number":491,"state":"open","locked":false,"title":"Takeaway-challenge solution","user":{"login":"jamesstonehill","id":19637233,"avatar_url":"https://avatars.githubusercontent.com/u/19637233?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesstonehill","html_url":"https://github.com/jamesstonehill","followers_url":"https://api.github.com/users/jamesstonehill/followers","following_url":"https://api.github.com/users/jamesstonehill/following{/other_user}","gists_url":"https://api.github.com/users/jamesstonehill/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesstonehill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesstonehill/subscriptions","organizations_url":"https://api.github.com/users/jamesstonehill/orgs","repos_url":"https://api.github.com/users/jamesstonehill/repos","events_url":"https://api.github.com/users/jamesstonehill/events{/privacy}","received_events_url":"https://api.github.com/users/jamesstonehill/received_events","type":"User","site_admin":false},"body":"Lacking full rspec testing.","created_at":"2016-08-30T08:22:32Z","updated_at":"2016-08-30T10:17:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d5e4a8d90e629cffd0bc140f78b41dcdf2ada87c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/491/commits","review_comments_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/491/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/491/comments","statuses_url":"https://api.github.com/repos/makersacademy/takeaway-challenge/statuses/512c2af28ef04c86430744cdfbd835c772ce96ca","head":{"label":"jamesstonehill:master","ref":"master","sha":"512c2af28ef04c86430744cdfbd835c772ce96ca","user":{"login":"jamesstonehill","id":19637233,"avatar_url":"https://avatars.githubusercontent.com/u/19637233?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesstonehill","html_url":"https://github.com/jamesstonehill","followers_url":"https://api.github.com/users/jamesstonehill/followers","following_url":"https://api.github.com/users/jamesstonehill/following{/other_user}","gists_url":"https://api.github.com/users/jamesstonehill/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesstonehill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesstonehill/subscriptions","organizations_url":"https://api.github.com/users/jamesstonehill/orgs","repos_url":"https://api.github.com/users/jamesstonehill/repos","events_url":"https://api.github.com/users/jamesstonehill/events{/privacy}","received_events_url":"https://api.github.com/users/jamesstonehill/received_events","type":"User","site_admin":false},"repo":{"id":66650398,"name":"takeaway-challenge","full_name":"jamesstonehill/takeaway-challenge","owner":{"login":"jamesstonehill","id":19637233,"avatar_url":"https://avatars.githubusercontent.com/u/19637233?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesstonehill","html_url":"https://github.com/jamesstonehill","followers_url":"https://api.github.com/users/jamesstonehill/followers","following_url":"https://api.github.com/users/jamesstonehill/following{/other_user}","gists_url":"https://api.github.com/users/jamesstonehill/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesstonehill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesstonehill/subscriptions","organizations_url":"https://api.github.com/users/jamesstonehill/orgs","repos_url":"https://api.github.com/users/jamesstonehill/repos","events_url":"https://api.github.com/users/jamesstonehill/events{/privacy}","received_events_url":"https://api.github.com/users/jamesstonehill/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jamesstonehill/takeaway-challenge","description":"Use the Twilio Gem to order food","fork":true,"url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge","forks_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/forks","keys_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/teams","hooks_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/hooks","issue_events_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/events","assignees_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/tags","blobs_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/languages","stargazers_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/stargazers","contributors_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/contributors","subscribers_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/subscribers","subscription_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/subscription","commits_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/merges","archive_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/downloads","issues_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/labels{/name}","releases_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/releases{/id}","deployments_url":"https://api.github.com/repos/jamesstonehill/takeaway-challenge/deployments","created_at":"2016-08-26T13:36:40Z","updated_at":"2016-08-26T13:36:42Z","pushed_at":"2016-08-30T10:16:59Z","git_url":"git://github.com/jamesstonehill/takeaway-challenge.git","ssh_url":"git@github.com:jamesstonehill/takeaway-challenge.git","clone_url":"https://github.com/jamesstonehill/takeaway-challenge.git","svn_url":"https://github.com/jamesstonehill/takeaway-challenge","homepage":null,"size":75,"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-07-24T16:49:04Z","pushed_at":"2016-08-30T10:16:59Z","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":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":441,"mirror_url":null,"open_issues_count":23,"forks":441,"open_issues":23,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/491"},"html":{"href":"https://github.com/makersacademy/takeaway-challenge/pull/491"},"issue":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/491"},"comments":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/issues/491/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/pulls/491/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/491/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/takeaway-challenge/statuses/512c2af28ef04c86430744cdfbd835c772ce96ca"}}}}
{"actor":{"display_login":"houndci-bot"}}