{"action":"created","comment":{"url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/pulls/comments/221283665","pull_request_review_id":159899249,"id":221283665,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTI4MzY2NQ==","diff_hunk":"@@ -0,0 +1,28 @@\n+# From https://codereview.stackexchange.com/questions/175850/determining-if-variables-integers-are-greater-or-less-than-0\n+\n+puts \"please assign an integer to x:\"\n+x = gets.chomp.to_i\n+\n+if (x > 0)\n+  value_of_x = true\n+else\n+  value_of_x = false\n+end\n+\n+puts \"now please assign an integer to y:\"\n+y = gets.chomp.to_i\n+\n+if (y > 0)\n+  value_of_y = true\n+else\n+  value_of_y = false\n+end\n+\n+case","path":"integer.rb","position":21,"original_position":21,"commit_id":"395e06a8c798bec4be96125d8b94a26a45a96aad","original_commit_id":"395e06a8c798bec4be96125d8b94a26a45a96aad","user":{"login":"rozzasun","id":30223770,"node_id":"MDQ6VXNlcjMwMjIzNzcw","avatar_url":"https://avatars2.githubusercontent.com/u/30223770?v=4","gravatar_id":"","url":"https://api.github.com/users/rozzasun","html_url":"https://github.com/rozzasun","followers_url":"https://api.github.com/users/rozzasun/followers","following_url":"https://api.github.com/users/rozzasun/following{/other_user}","gists_url":"https://api.github.com/users/rozzasun/gists{/gist_id}","starred_url":"https://api.github.com/users/rozzasun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rozzasun/subscriptions","organizations_url":"https://api.github.com/users/rozzasun/orgs","repos_url":"https://api.github.com/users/rozzasun/repos","events_url":"https://api.github.com/users/rozzasun/events{/privacy}","received_events_url":"https://api.github.com/users/rozzasun/received_events","type":"User","site_admin":false},"body":"Consider using \"puts case\" instead of \"case\" - it helps avoid repeating the \"puts\" keyword on line 23, 25, and 27.","created_at":"2018-09-28T15:01:05Z","updated_at":"2018-09-28T15:01:05Z","html_url":"https://github.com/DevLifeClassroom/dev1-t2-demo-carleton-2018/pull/1#discussion_r221283665","pull_request_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/pulls/comments/221283665"},"html":{"href":"https://github.com/DevLifeClassroom/dev1-t2-demo-carleton-2018/pull/1#discussion_r221283665"},"pull_request":{"href":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/pulls/1","id":213436063,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzNDM2MDYz","html_url":"https://github.com/DevLifeClassroom/dev1-t2-demo-carleton-2018/pull/1","diff_url":"https://github.com/DevLifeClassroom/dev1-t2-demo-carleton-2018/pull/1.diff","patch_url":"https://github.com/DevLifeClassroom/dev1-t2-demo-carleton-2018/pull/1.patch","issue_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/issues/1","number":1,"state":"open","locked":false,"title":"Add integer comparison","user":{"login":"christinejordan","id":15325413,"node_id":"MDQ6VXNlcjE1MzI1NDEz","avatar_url":"https://avatars2.githubusercontent.com/u/15325413?v=4","gravatar_id":"","url":"https://api.github.com/users/christinejordan","html_url":"https://github.com/christinejordan","followers_url":"https://api.github.com/users/christinejordan/followers","following_url":"https://api.github.com/users/christinejordan/following{/other_user}","gists_url":"https://api.github.com/users/christinejordan/gists{/gist_id}","starred_url":"https://api.github.com/users/christinejordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christinejordan/subscriptions","organizations_url":"https://api.github.com/users/christinejordan/orgs","repos_url":"https://api.github.com/users/christinejordan/repos","events_url":"https://api.github.com/users/christinejordan/events{/privacy}","received_events_url":"https://api.github.com/users/christinejordan/received_events","type":"User","site_admin":false},"body":"\"Hobbyist here. I think my case/when logic needs to be cleaned up a bit. I'd also appreciate critique on the other parts...but I'm more interested in cleaning up the case/when statements...\"\r\n\r\nFrom [Stack Exchange's Code Reviews](https://codereview.stackexchange.com/questions/175850/determining-if-variables-integers-are-greater-or-less-than-0)","created_at":"2018-09-05T21:40:04Z","updated_at":"2018-09-28T15:01:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a3ae709775d95248d54a725bf114baccd28c22b4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/pulls/1/commits","review_comments_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/pulls/1/comments","review_comment_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/issues/1/comments","statuses_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/statuses/395e06a8c798bec4be96125d8b94a26a45a96aad","head":{"label":"DevLifeClassroom:add-integer","ref":"add-integer","sha":"395e06a8c798bec4be96125d8b94a26a45a96aad","user":{"login":"DevLifeClassroom","id":32966188,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTY2MTg4","avatar_url":"https://avatars2.githubusercontent.com/u/32966188?v=4","gravatar_id":"","url":"https://api.github.com/users/DevLifeClassroom","html_url":"https://github.com/DevLifeClassroom","followers_url":"https://api.github.com/users/DevLifeClassroom/followers","following_url":"https://api.github.com/users/DevLifeClassroom/following{/other_user}","gists_url":"https://api.github.com/users/DevLifeClassroom/gists{/gist_id}","starred_url":"https://api.github.com/users/DevLifeClassroom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevLifeClassroom/subscriptions","organizations_url":"https://api.github.com/users/DevLifeClassroom/orgs","repos_url":"https://api.github.com/users/DevLifeClassroom/repos","events_url":"https://api.github.com/users/DevLifeClassroom/events{/privacy}","received_events_url":"https://api.github.com/users/DevLifeClassroom/received_events","type":"Organization","site_admin":false},"repo":{"id":147582249,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc1ODIyNDk=","name":"dev1-t2-demo-carleton-2018","full_name":"DevLifeClassroom/dev1-t2-demo-carleton-2018","private":false,"owner":{"login":"DevLifeClassroom","id":32966188,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTY2MTg4","avatar_url":"https://avatars2.githubusercontent.com/u/32966188?v=4","gravatar_id":"","url":"https://api.github.com/users/DevLifeClassroom","html_url":"https://github.com/DevLifeClassroom","followers_url":"https://api.github.com/users/DevLifeClassroom/followers","following_url":"https://api.github.com/users/DevLifeClassroom/following{/other_user}","gists_url":"https://api.github.com/users/DevLifeClassroom/gists{/gist_id}","starred_url":"https://api.github.com/users/DevLifeClassroom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevLifeClassroom/subscriptions","organizations_url":"https://api.github.com/users/DevLifeClassroom/orgs","repos_url":"https://api.github.com/users/DevLifeClassroom/repos","events_url":"https://api.github.com/users/DevLifeClassroom/events{/privacy}","received_events_url":"https://api.github.com/users/DevLifeClassroom/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/DevLifeClassroom/dev1-t2-demo-carleton-2018","description":"dev1-t2-demo-carleton-2018 created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018","forks_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/forks","keys_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/teams","hooks_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/hooks","issue_events_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/issues/events{/number}","events_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/events","assignees_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/assignees{/user}","branches_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/branches{/branch}","tags_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/tags","blobs_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/languages","stargazers_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/stargazers","contributors_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/contributors","subscribers_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/subscribers","subscription_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/subscription","commits_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/contents/{+path}","compare_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/merges","archive_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/downloads","issues_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/issues{/number}","pulls_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/labels{/name}","releases_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/releases{/id}","deployments_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/deployments","created_at":"2018-09-05T21:36:47Z","updated_at":"2018-09-17T17:54:19Z","pushed_at":"2018-09-18T17:44:24Z","git_url":"git://github.com/DevLifeClassroom/dev1-t2-demo-carleton-2018.git","ssh_url":"git@github.com:DevLifeClassroom/dev1-t2-demo-carleton-2018.git","clone_url":"https://github.com/DevLifeClassroom/dev1-t2-demo-carleton-2018.git","svn_url":"https://github.com/DevLifeClassroom/dev1-t2-demo-carleton-2018","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"DevLifeClassroom:master","ref":"master","sha":"7d04fdaad97793fa86cd61940d604788bb011c56","user":{"login":"DevLifeClassroom","id":32966188,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTY2MTg4","avatar_url":"https://avatars2.githubusercontent.com/u/32966188?v=4","gravatar_id":"","url":"https://api.github.com/users/DevLifeClassroom","html_url":"https://github.com/DevLifeClassroom","followers_url":"https://api.github.com/users/DevLifeClassroom/followers","following_url":"https://api.github.com/users/DevLifeClassroom/following{/other_user}","gists_url":"https://api.github.com/users/DevLifeClassroom/gists{/gist_id}","starred_url":"https://api.github.com/users/DevLifeClassroom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevLifeClassroom/subscriptions","organizations_url":"https://api.github.com/users/DevLifeClassroom/orgs","repos_url":"https://api.github.com/users/DevLifeClassroom/repos","events_url":"https://api.github.com/users/DevLifeClassroom/events{/privacy}","received_events_url":"https://api.github.com/users/DevLifeClassroom/received_events","type":"Organization","site_admin":false},"repo":{"id":147582249,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc1ODIyNDk=","name":"dev1-t2-demo-carleton-2018","full_name":"DevLifeClassroom/dev1-t2-demo-carleton-2018","private":false,"owner":{"login":"DevLifeClassroom","id":32966188,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyOTY2MTg4","avatar_url":"https://avatars2.githubusercontent.com/u/32966188?v=4","gravatar_id":"","url":"https://api.github.com/users/DevLifeClassroom","html_url":"https://github.com/DevLifeClassroom","followers_url":"https://api.github.com/users/DevLifeClassroom/followers","following_url":"https://api.github.com/users/DevLifeClassroom/following{/other_user}","gists_url":"https://api.github.com/users/DevLifeClassroom/gists{/gist_id}","starred_url":"https://api.github.com/users/DevLifeClassroom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevLifeClassroom/subscriptions","organizations_url":"https://api.github.com/users/DevLifeClassroom/orgs","repos_url":"https://api.github.com/users/DevLifeClassroom/repos","events_url":"https://api.github.com/users/DevLifeClassroom/events{/privacy}","received_events_url":"https://api.github.com/users/DevLifeClassroom/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/DevLifeClassroom/dev1-t2-demo-carleton-2018","description":"dev1-t2-demo-carleton-2018 created by GitHub Classroom","fork":false,"url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018","forks_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/forks","keys_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/teams","hooks_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/hooks","issue_events_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/issues/events{/number}","events_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/events","assignees_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/assignees{/user}","branches_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/branches{/branch}","tags_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/tags","blobs_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/languages","stargazers_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/stargazers","contributors_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/contributors","subscribers_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/subscribers","subscription_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/subscription","commits_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/contents/{+path}","compare_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/merges","archive_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/downloads","issues_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/issues{/number}","pulls_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/labels{/name}","releases_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/releases{/id}","deployments_url":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/deployments","created_at":"2018-09-05T21:36:47Z","updated_at":"2018-09-17T17:54:19Z","pushed_at":"2018-09-18T17:44:24Z","git_url":"git://github.com/DevLifeClassroom/dev1-t2-demo-carleton-2018.git","ssh_url":"git@github.com:DevLifeClassroom/dev1-t2-demo-carleton-2018.git","clone_url":"https://github.com/DevLifeClassroom/dev1-t2-demo-carleton-2018.git","svn_url":"https://github.com/DevLifeClassroom/dev1-t2-demo-carleton-2018","homepage":null,"size":4,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/pulls/1"},"html":{"href":"https://github.com/DevLifeClassroom/dev1-t2-demo-carleton-2018/pull/1"},"issue":{"href":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/issues/1"},"comments":{"href":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/DevLifeClassroom/dev1-t2-demo-carleton-2018/statuses/395e06a8c798bec4be96125d8b94a26a45a96aad"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"rozzasun"}}