{"action":"created","comment":{"url":"https://api.github.com/repos/Erica42/phase-0-tracks/pulls/comments/89243601","pull_request_review_id":9790961,"id":89243601,"diff_hunk":"@@ -0,0 +1,84 @@\n+#How many people are you going to be hired?\n+puts \"How many people are going to be hired?\"\n+hired = gets.chomp.to_i\n+\n+#Begin hired loop\n+until hired == 0\n+  # what's your name?\n+  puts \"What's your name?\"\n+  name = gets.chomp\n+\n+  #How old are you? What year were you born?\n+  puts \"How old are you?\"\n+  age = gets.chomp.to_i\n+  puts \"What year were you born?\"\n+  birth_year = gets.chomp.to_i\n+  #Checking age in 2016\n+  age_check = 2016 - birth_year - age\n+  if age_check > 1\n+    age_check = false\n+    result = -1\n+  elsif age_check < 0\n+    age_check = false\n+    result = -1\n+  else\n+      age_check = true\n+      result = 1\n+  end\n+    #debugging\n+  puts age_check\n+  puts result\n+\n+  #Should we order you garlic bread?\n+  puts \"Would you like an order of garlic bread?\"\n+  garlic = gets.chomp\n+  case garlic\n+  when \"yes\"\n+    garlic = true\n+    result += 1\n+  else\n+    garlic = false\n+  end\n+  #debugging\n+  puts garlic\n+  puts result\n+\n+  #Would you like health insurance?\n+  puts \"Would you like to enroll in the company's health insurance?\"\n+  insurance = gets.chomp\n+  case insurance\n+  when \"yes\"\n+    insurance = true\n+    result += 1\n+  else\n+      insurance = false\n+  end\n+  #debugging\n+  puts insurance\n+  puts result\n+\n+  #Allergy loop\n+  puts \"Do you have any allergies? (please list, otherwise type 'done'.)\"\n+  while allergy = gets.chomp\n+    case allergy\n+    when \"done\"\n+      break\n+    when \"sunshine\"\n+      result = 0\n+      break\n+    else\n+      puts \"anything else?\"\n+    end\n+  end\n+  #Logic goes here\n+  puts \"Probably not a vampire.\" if result >= 2 && (name != \"Drake Cula\" || name != \"Tu Fang\")\n+  puts \"Probably a vampire.\" if result == 0  && (name != \"Drake Cula\" || name != \"Tu Fang\")\n+  puts \"Almost certainly a vampire.\" if result < 0  && name != \"Drake Cula\" && name != \"Tu Fang\"\n+  puts \"Definitely a vampire.\" if name == \"Drake Cula\"","path":"ruby/vampires.rb","position":77,"original_position":77,"commit_id":"77141325d89bffb972abdfe15a483464718900ba","original_commit_id":"77141325d89bffb972abdfe15a483464718900ba","user":{"login":"Erica42","id":11653371,"avatar_url":"https://avatars.githubusercontent.com/u/11653371?v=3","gravatar_id":"","url":"https://api.github.com/users/Erica42","html_url":"https://github.com/Erica42","followers_url":"https://api.github.com/users/Erica42/followers","following_url":"https://api.github.com/users/Erica42/following{/other_user}","gists_url":"https://api.github.com/users/Erica42/gists{/gist_id}","starred_url":"https://api.github.com/users/Erica42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Erica42/subscriptions","organizations_url":"https://api.github.com/users/Erica42/orgs","repos_url":"https://api.github.com/users/Erica42/repos","events_url":"https://api.github.com/users/Erica42/events{/privacy}","received_events_url":"https://api.github.com/users/Erica42/received_events","type":"User","site_admin":false},"body":"I had it set up differently, but then upon rereading it seemed to be saying to run it in the order that it was listed, so I redid it so that it would be in this order.","created_at":"2016-11-23T01:12:01Z","updated_at":"2016-11-23T01:12:01Z","html_url":"https://github.com/Erica42/phase-0-tracks/pull/20#discussion_r89243601","pull_request_url":"https://api.github.com/repos/Erica42/phase-0-tracks/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/Erica42/phase-0-tracks/pulls/comments/89243601"},"html":{"href":"https://github.com/Erica42/phase-0-tracks/pull/20#discussion_r89243601"},"pull_request":{"href":"https://api.github.com/repos/Erica42/phase-0-tracks/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/Erica42/phase-0-tracks/pulls/20","id":94306336,"html_url":"https://github.com/Erica42/phase-0-tracks/pull/20","diff_url":"https://github.com/Erica42/phase-0-tracks/pull/20.diff","patch_url":"https://github.com/Erica42/phase-0-tracks/pull/20.patch","issue_url":"https://api.github.com/repos/Erica42/phase-0-tracks/issues/20","number":20,"state":"closed","locked":false,"title":"4 4 solo","user":{"login":"Erica42","id":11653371,"avatar_url":"https://avatars.githubusercontent.com/u/11653371?v=3","gravatar_id":"","url":"https://api.github.com/users/Erica42","html_url":"https://github.com/Erica42","followers_url":"https://api.github.com/users/Erica42/followers","following_url":"https://api.github.com/users/Erica42/following{/other_user}","gists_url":"https://api.github.com/users/Erica42/gists{/gist_id}","starred_url":"https://api.github.com/users/Erica42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Erica42/subscriptions","organizations_url":"https://api.github.com/users/Erica42/orgs","repos_url":"https://api.github.com/users/Erica42/repos","events_url":"https://api.github.com/users/Erica42/events{/privacy}","received_events_url":"https://api.github.com/users/Erica42/received_events","type":"User","site_admin":false},"body":"@Bontgoy Could you please do a code review on this? Thank you! \r\nI merged so I could move on.","created_at":"2016-11-18T05:48:29Z","updated_at":"2016-11-23T01:12:01Z","closed_at":"2016-11-19T00:42:46Z","merged_at":"2016-11-19T00:42:46Z","merge_commit_sha":"77141325d89bffb972abdfe15a483464718900ba","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Erica42/phase-0-tracks/pulls/20/commits","review_comments_url":"https://api.github.com/repos/Erica42/phase-0-tracks/pulls/20/comments","review_comment_url":"https://api.github.com/repos/Erica42/phase-0-tracks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Erica42/phase-0-tracks/issues/20/comments","statuses_url":"https://api.github.com/repos/Erica42/phase-0-tracks/statuses/77141325d89bffb972abdfe15a483464718900ba","head":{"label":"Erica42:4-4-solo","ref":"4-4-solo","sha":"77141325d89bffb972abdfe15a483464718900ba","user":{"login":"Erica42","id":11653371,"avatar_url":"https://avatars.githubusercontent.com/u/11653371?v=3","gravatar_id":"","url":"https://api.github.com/users/Erica42","html_url":"https://github.com/Erica42","followers_url":"https://api.github.com/users/Erica42/followers","following_url":"https://api.github.com/users/Erica42/following{/other_user}","gists_url":"https://api.github.com/users/Erica42/gists{/gist_id}","starred_url":"https://api.github.com/users/Erica42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Erica42/subscriptions","organizations_url":"https://api.github.com/users/Erica42/orgs","repos_url":"https://api.github.com/users/Erica42/repos","events_url":"https://api.github.com/users/Erica42/events{/privacy}","received_events_url":"https://api.github.com/users/Erica42/received_events","type":"User","site_admin":false},"repo":{"id":72216859,"name":"phase-0-tracks","full_name":"Erica42/phase-0-tracks","owner":{"login":"Erica42","id":11653371,"avatar_url":"https://avatars.githubusercontent.com/u/11653371?v=3","gravatar_id":"","url":"https://api.github.com/users/Erica42","html_url":"https://github.com/Erica42","followers_url":"https://api.github.com/users/Erica42/followers","following_url":"https://api.github.com/users/Erica42/following{/other_user}","gists_url":"https://api.github.com/users/Erica42/gists{/gist_id}","starred_url":"https://api.github.com/users/Erica42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Erica42/subscriptions","organizations_url":"https://api.github.com/users/Erica42/orgs","repos_url":"https://api.github.com/users/Erica42/repos","events_url":"https://api.github.com/users/Erica42/events{/privacy}","received_events_url":"https://api.github.com/users/Erica42/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Erica42/phase-0-tracks","description":null,"fork":true,"url":"https://api.github.com/repos/Erica42/phase-0-tracks","forks_url":"https://api.github.com/repos/Erica42/phase-0-tracks/forks","keys_url":"https://api.github.com/repos/Erica42/phase-0-tracks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Erica42/phase-0-tracks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Erica42/phase-0-tracks/teams","hooks_url":"https://api.github.com/repos/Erica42/phase-0-tracks/hooks","issue_events_url":"https://api.github.com/repos/Erica42/phase-0-tracks/issues/events{/number}","events_url":"https://api.github.com/repos/Erica42/phase-0-tracks/events","assignees_url":"https://api.github.com/repos/Erica42/phase-0-tracks/assignees{/user}","branches_url":"https://api.github.com/repos/Erica42/phase-0-tracks/branches{/branch}","tags_url":"https://api.github.com/repos/Erica42/phase-0-tracks/tags","blobs_url":"https://api.github.com/repos/Erica42/phase-0-tracks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Erica42/phase-0-tracks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Erica42/phase-0-tracks/git/refs{/sha}","trees_url":"https://api.github.com/repos/Erica42/phase-0-tracks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Erica42/phase-0-tracks/statuses/{sha}","languages_url":"https://api.github.com/repos/Erica42/phase-0-tracks/languages","stargazers_url":"https://api.github.com/repos/Erica42/phase-0-tracks/stargazers","contributors_url":"https://api.github.com/repos/Erica42/phase-0-tracks/contributors","subscribers_url":"https://api.github.com/repos/Erica42/phase-0-tracks/subscribers","subscription_url":"https://api.github.com/repos/Erica42/phase-0-tracks/subscription","commits_url":"https://api.github.com/repos/Erica42/phase-0-tracks/commits{/sha}","git_commits_url":"https://api.github.com/repos/Erica42/phase-0-tracks/git/commits{/sha}","comments_url":"https://api.github.com/repos/Erica42/phase-0-tracks/comments{/number}","issue_comment_url":"https://api.github.com/repos/Erica42/phase-0-tracks/issues/comments{/number}","contents_url":"https://api.github.com/repos/Erica42/phase-0-tracks/contents/{+path}","compare_url":"https://api.github.com/repos/Erica42/phase-0-tracks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Erica42/phase-0-tracks/merges","archive_url":"https://api.github.com/repos/Erica42/phase-0-tracks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Erica42/phase-0-tracks/downloads","issues_url":"https://api.github.com/repos/Erica42/phase-0-tracks/issues{/number}","pulls_url":"https://api.github.com/repos/Erica42/phase-0-tracks/pulls{/number}","milestones_url":"https://api.github.com/repos/Erica42/phase-0-tracks/milestones{/number}","notifications_url":"https://api.github.com/repos/Erica42/phase-0-tracks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Erica42/phase-0-tracks/labels{/name}","releases_url":"https://api.github.com/repos/Erica42/phase-0-tracks/releases{/id}","deployments_url":"https://api.github.com/repos/Erica42/phase-0-tracks/deployments","created_at":"2016-10-28T14:58:08Z","updated_at":"2016-10-31T15:52:46Z","pushed_at":"2016-11-23T00:43:45Z","git_url":"git://github.com/Erica42/phase-0-tracks.git","ssh_url":"git@github.com:Erica42/phase-0-tracks.git","clone_url":"https://github.com/Erica42/phase-0-tracks.git","svn_url":"https://github.com/Erica42/phase-0-tracks","homepage":null,"size":4239,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"Erica42:master","ref":"master","sha":"bd662d222c81e67d123ee016c6a1a79a417b4ced","user":{"login":"Erica42","id":11653371,"avatar_url":"https://avatars.githubusercontent.com/u/11653371?v=3","gravatar_id":"","url":"https://api.github.com/users/Erica42","html_url":"https://github.com/Erica42","followers_url":"https://api.github.com/users/Erica42/followers","following_url":"https://api.github.com/users/Erica42/following{/other_user}","gists_url":"https://api.github.com/users/Erica42/gists{/gist_id}","starred_url":"https://api.github.com/users/Erica42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Erica42/subscriptions","organizations_url":"https://api.github.com/users/Erica42/orgs","repos_url":"https://api.github.com/users/Erica42/repos","events_url":"https://api.github.com/users/Erica42/events{/privacy}","received_events_url":"https://api.github.com/users/Erica42/received_events","type":"User","site_admin":false},"repo":{"id":72216859,"name":"phase-0-tracks","full_name":"Erica42/phase-0-tracks","owner":{"login":"Erica42","id":11653371,"avatar_url":"https://avatars.githubusercontent.com/u/11653371?v=3","gravatar_id":"","url":"https://api.github.com/users/Erica42","html_url":"https://github.com/Erica42","followers_url":"https://api.github.com/users/Erica42/followers","following_url":"https://api.github.com/users/Erica42/following{/other_user}","gists_url":"https://api.github.com/users/Erica42/gists{/gist_id}","starred_url":"https://api.github.com/users/Erica42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Erica42/subscriptions","organizations_url":"https://api.github.com/users/Erica42/orgs","repos_url":"https://api.github.com/users/Erica42/repos","events_url":"https://api.github.com/users/Erica42/events{/privacy}","received_events_url":"https://api.github.com/users/Erica42/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Erica42/phase-0-tracks","description":null,"fork":true,"url":"https://api.github.com/repos/Erica42/phase-0-tracks","forks_url":"https://api.github.com/repos/Erica42/phase-0-tracks/forks","keys_url":"https://api.github.com/repos/Erica42/phase-0-tracks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Erica42/phase-0-tracks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Erica42/phase-0-tracks/teams","hooks_url":"https://api.github.com/repos/Erica42/phase-0-tracks/hooks","issue_events_url":"https://api.github.com/repos/Erica42/phase-0-tracks/issues/events{/number}","events_url":"https://api.github.com/repos/Erica42/phase-0-tracks/events","assignees_url":"https://api.github.com/repos/Erica42/phase-0-tracks/assignees{/user}","branches_url":"https://api.github.com/repos/Erica42/phase-0-tracks/branches{/branch}","tags_url":"https://api.github.com/repos/Erica42/phase-0-tracks/tags","blobs_url":"https://api.github.com/repos/Erica42/phase-0-tracks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Erica42/phase-0-tracks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Erica42/phase-0-tracks/git/refs{/sha}","trees_url":"https://api.github.com/repos/Erica42/phase-0-tracks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Erica42/phase-0-tracks/statuses/{sha}","languages_url":"https://api.github.com/repos/Erica42/phase-0-tracks/languages","stargazers_url":"https://api.github.com/repos/Erica42/phase-0-tracks/stargazers","contributors_url":"https://api.github.com/repos/Erica42/phase-0-tracks/contributors","subscribers_url":"https://api.github.com/repos/Erica42/phase-0-tracks/subscribers","subscription_url":"https://api.github.com/repos/Erica42/phase-0-tracks/subscription","commits_url":"https://api.github.com/repos/Erica42/phase-0-tracks/commits{/sha}","git_commits_url":"https://api.github.com/repos/Erica42/phase-0-tracks/git/commits{/sha}","comments_url":"https://api.github.com/repos/Erica42/phase-0-tracks/comments{/number}","issue_comment_url":"https://api.github.com/repos/Erica42/phase-0-tracks/issues/comments{/number}","contents_url":"https://api.github.com/repos/Erica42/phase-0-tracks/contents/{+path}","compare_url":"https://api.github.com/repos/Erica42/phase-0-tracks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Erica42/phase-0-tracks/merges","archive_url":"https://api.github.com/repos/Erica42/phase-0-tracks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Erica42/phase-0-tracks/downloads","issues_url":"https://api.github.com/repos/Erica42/phase-0-tracks/issues{/number}","pulls_url":"https://api.github.com/repos/Erica42/phase-0-tracks/pulls{/number}","milestones_url":"https://api.github.com/repos/Erica42/phase-0-tracks/milestones{/number}","notifications_url":"https://api.github.com/repos/Erica42/phase-0-tracks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Erica42/phase-0-tracks/labels{/name}","releases_url":"https://api.github.com/repos/Erica42/phase-0-tracks/releases{/id}","deployments_url":"https://api.github.com/repos/Erica42/phase-0-tracks/deployments","created_at":"2016-10-28T14:58:08Z","updated_at":"2016-10-31T15:52:46Z","pushed_at":"2016-11-23T00:43:45Z","git_url":"git://github.com/Erica42/phase-0-tracks.git","ssh_url":"git@github.com:Erica42/phase-0-tracks.git","clone_url":"https://github.com/Erica42/phase-0-tracks.git","svn_url":"https://github.com/Erica42/phase-0-tracks","homepage":null,"size":4239,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Erica42/phase-0-tracks/pulls/20"},"html":{"href":"https://github.com/Erica42/phase-0-tracks/pull/20"},"issue":{"href":"https://api.github.com/repos/Erica42/phase-0-tracks/issues/20"},"comments":{"href":"https://api.github.com/repos/Erica42/phase-0-tracks/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/Erica42/phase-0-tracks/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/Erica42/phase-0-tracks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Erica42/phase-0-tracks/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/Erica42/phase-0-tracks/statuses/77141325d89bffb972abdfe15a483464718900ba"}}}}
{"actor":{"display_login":"Erica42"}}