{"action":"created","comment":{"url":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/comments/199595361","pull_request_review_id":133745941,"id":199595361,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTU5NTM2MQ==","diff_hunk":"@@ -1,24 +1,34 @@\n def get_letter_grade(integer)\n- \n-  #Put your code here!\n-\n+  letter_grade = \"\"\n+  if integer >= 90\n+    letter_grade = \"A\"\n+  elsif integer >= 80\n+    letter_grade = \"B\"\n+  elsif integer >= 70\n+    letter_grade = \"C\"\n+  elsif integer >= 60\n+    letter_grade = \"D\"\n+  else\n+    letter_grade = \"F\"","path":"letsdrill.rb","position":15,"original_position":15,"commit_id":"74af948b95e104646087949d3209fc69c5c654ae","original_commit_id":"74af948b95e104646087949d3209fc69c5c654ae","user":{"login":"mikegee","id":14068,"node_id":"MDQ6VXNlcjE0MDY4","avatar_url":"https://avatars3.githubusercontent.com/u/14068?v=4","gravatar_id":"","url":"https://api.github.com/users/mikegee","html_url":"https://github.com/mikegee","followers_url":"https://api.github.com/users/mikegee/followers","following_url":"https://api.github.com/users/mikegee/following{/other_user}","gists_url":"https://api.github.com/users/mikegee/gists{/gist_id}","starred_url":"https://api.github.com/users/mikegee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikegee/subscriptions","organizations_url":"https://api.github.com/users/mikegee/orgs","repos_url":"https://api.github.com/users/mikegee/repos","events_url":"https://api.github.com/users/mikegee/events{/privacy}","received_events_url":"https://api.github.com/users/mikegee/received_events","type":"User","site_admin":false},"body":"The whole `if`/`elsif`/`else` structure evaluates to the value of whichever branch it takes. So, you could move the local variable assignment out of each condition like so:\r\n\r\n```ruby\r\nletter_grade = if integer >= 90\r\n                 \"A\"\r\n               elsif ...\r\n```","created_at":"2018-07-02T19:16:15Z","updated_at":"2018-07-02T19:16:15Z","html_url":"https://github.com/paircolumbus/LetsDrill/pull/107#discussion_r199595361","pull_request_url":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/107","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/comments/199595361"},"html":{"href":"https://github.com/paircolumbus/LetsDrill/pull/107#discussion_r199595361"},"pull_request":{"href":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/107"}}},"pull_request":{"url":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/107","id":198733229,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NzMzMjI5","html_url":"https://github.com/paircolumbus/LetsDrill/pull/107","diff_url":"https://github.com/paircolumbus/LetsDrill/pull/107.diff","patch_url":"https://github.com/paircolumbus/LetsDrill/pull/107.patch","issue_url":"https://api.github.com/repos/paircolumbus/LetsDrill/issues/107","number":107,"state":"open","locked":false,"title":"Initial commit","user":{"login":"AlexRichards9595","id":35498311,"node_id":"MDQ6VXNlcjM1NDk4MzEx","avatar_url":"https://avatars2.githubusercontent.com/u/35498311?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexRichards9595","html_url":"https://github.com/AlexRichards9595","followers_url":"https://api.github.com/users/AlexRichards9595/followers","following_url":"https://api.github.com/users/AlexRichards9595/following{/other_user}","gists_url":"https://api.github.com/users/AlexRichards9595/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexRichards9595/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexRichards9595/subscriptions","organizations_url":"https://api.github.com/users/AlexRichards9595/orgs","repos_url":"https://api.github.com/users/AlexRichards9595/repos","events_url":"https://api.github.com/users/AlexRichards9595/events{/privacy}","received_events_url":"https://api.github.com/users/AlexRichards9595/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-02T16:40:53Z","updated_at":"2018-07-02T19:16:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6690347b17368f041d758663b79a6828dc197afe","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/107/commits","review_comments_url":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/107/comments","review_comment_url":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paircolumbus/LetsDrill/issues/107/comments","statuses_url":"https://api.github.com/repos/paircolumbus/LetsDrill/statuses/74af948b95e104646087949d3209fc69c5c654ae","head":{"label":"AlexRichards9595:alex_richards_solution","ref":"alex_richards_solution","sha":"74af948b95e104646087949d3209fc69c5c654ae","user":{"login":"AlexRichards9595","id":35498311,"node_id":"MDQ6VXNlcjM1NDk4MzEx","avatar_url":"https://avatars2.githubusercontent.com/u/35498311?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexRichards9595","html_url":"https://github.com/AlexRichards9595","followers_url":"https://api.github.com/users/AlexRichards9595/followers","following_url":"https://api.github.com/users/AlexRichards9595/following{/other_user}","gists_url":"https://api.github.com/users/AlexRichards9595/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexRichards9595/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexRichards9595/subscriptions","organizations_url":"https://api.github.com/users/AlexRichards9595/orgs","repos_url":"https://api.github.com/users/AlexRichards9595/repos","events_url":"https://api.github.com/users/AlexRichards9595/events{/privacy}","received_events_url":"https://api.github.com/users/AlexRichards9595/received_events","type":"User","site_admin":false},"repo":{"id":139467537,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk0Njc1Mzc=","name":"LetsDrill","full_name":"AlexRichards9595/LetsDrill","owner":{"login":"AlexRichards9595","id":35498311,"node_id":"MDQ6VXNlcjM1NDk4MzEx","avatar_url":"https://avatars2.githubusercontent.com/u/35498311?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexRichards9595","html_url":"https://github.com/AlexRichards9595","followers_url":"https://api.github.com/users/AlexRichards9595/followers","following_url":"https://api.github.com/users/AlexRichards9595/following{/other_user}","gists_url":"https://api.github.com/users/AlexRichards9595/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexRichards9595/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexRichards9595/subscriptions","organizations_url":"https://api.github.com/users/AlexRichards9595/orgs","repos_url":"https://api.github.com/users/AlexRichards9595/repos","events_url":"https://api.github.com/users/AlexRichards9595/events{/privacy}","received_events_url":"https://api.github.com/users/AlexRichards9595/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlexRichards9595/LetsDrill","description":"Fun, little drills to review our knowledge of Ruby","fork":true,"url":"https://api.github.com/repos/AlexRichards9595/LetsDrill","forks_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/forks","keys_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/teams","hooks_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/hooks","issue_events_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/issues/events{/number}","events_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/events","assignees_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/assignees{/user}","branches_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/branches{/branch}","tags_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/tags","blobs_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/languages","stargazers_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/stargazers","contributors_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/contributors","subscribers_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/subscribers","subscription_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/subscription","commits_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/contents/{+path}","compare_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/merges","archive_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/downloads","issues_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/issues{/number}","pulls_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/labels{/name}","releases_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/releases{/id}","deployments_url":"https://api.github.com/repos/AlexRichards9595/LetsDrill/deployments","created_at":"2018-07-02T16:28:19Z","updated_at":"2018-07-02T16:28:21Z","pushed_at":"2018-07-02T17:21:52Z","git_url":"git://github.com/AlexRichards9595/LetsDrill.git","ssh_url":"git@github.com:AlexRichards9595/LetsDrill.git","clone_url":"https://github.com/AlexRichards9595/LetsDrill.git","svn_url":"https://github.com/AlexRichards9595/LetsDrill","homepage":null,"size":18,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"paircolumbus:master","ref":"master","sha":"a7d7b6b42dbdcb09cd0b2ab790d6bd740456ee32","user":{"login":"paircolumbus","id":8568348,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg1NjgzNDg=","avatar_url":"https://avatars3.githubusercontent.com/u/8568348?v=4","gravatar_id":"","url":"https://api.github.com/users/paircolumbus","html_url":"https://github.com/paircolumbus","followers_url":"https://api.github.com/users/paircolumbus/followers","following_url":"https://api.github.com/users/paircolumbus/following{/other_user}","gists_url":"https://api.github.com/users/paircolumbus/gists{/gist_id}","starred_url":"https://api.github.com/users/paircolumbus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paircolumbus/subscriptions","organizations_url":"https://api.github.com/users/paircolumbus/orgs","repos_url":"https://api.github.com/users/paircolumbus/repos","events_url":"https://api.github.com/users/paircolumbus/events{/privacy}","received_events_url":"https://api.github.com/users/paircolumbus/received_events","type":"Organization","site_admin":false},"repo":{"id":23600210,"node_id":"MDEwOlJlcG9zaXRvcnkyMzYwMDIxMA==","name":"LetsDrill","full_name":"paircolumbus/LetsDrill","owner":{"login":"paircolumbus","id":8568348,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg1NjgzNDg=","avatar_url":"https://avatars3.githubusercontent.com/u/8568348?v=4","gravatar_id":"","url":"https://api.github.com/users/paircolumbus","html_url":"https://github.com/paircolumbus","followers_url":"https://api.github.com/users/paircolumbus/followers","following_url":"https://api.github.com/users/paircolumbus/following{/other_user}","gists_url":"https://api.github.com/users/paircolumbus/gists{/gist_id}","starred_url":"https://api.github.com/users/paircolumbus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paircolumbus/subscriptions","organizations_url":"https://api.github.com/users/paircolumbus/orgs","repos_url":"https://api.github.com/users/paircolumbus/repos","events_url":"https://api.github.com/users/paircolumbus/events{/privacy}","received_events_url":"https://api.github.com/users/paircolumbus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/paircolumbus/LetsDrill","description":"Fun, little drills to review our knowledge of Ruby","fork":false,"url":"https://api.github.com/repos/paircolumbus/LetsDrill","forks_url":"https://api.github.com/repos/paircolumbus/LetsDrill/forks","keys_url":"https://api.github.com/repos/paircolumbus/LetsDrill/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paircolumbus/LetsDrill/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paircolumbus/LetsDrill/teams","hooks_url":"https://api.github.com/repos/paircolumbus/LetsDrill/hooks","issue_events_url":"https://api.github.com/repos/paircolumbus/LetsDrill/issues/events{/number}","events_url":"https://api.github.com/repos/paircolumbus/LetsDrill/events","assignees_url":"https://api.github.com/repos/paircolumbus/LetsDrill/assignees{/user}","branches_url":"https://api.github.com/repos/paircolumbus/LetsDrill/branches{/branch}","tags_url":"https://api.github.com/repos/paircolumbus/LetsDrill/tags","blobs_url":"https://api.github.com/repos/paircolumbus/LetsDrill/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paircolumbus/LetsDrill/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paircolumbus/LetsDrill/git/refs{/sha}","trees_url":"https://api.github.com/repos/paircolumbus/LetsDrill/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paircolumbus/LetsDrill/statuses/{sha}","languages_url":"https://api.github.com/repos/paircolumbus/LetsDrill/languages","stargazers_url":"https://api.github.com/repos/paircolumbus/LetsDrill/stargazers","contributors_url":"https://api.github.com/repos/paircolumbus/LetsDrill/contributors","subscribers_url":"https://api.github.com/repos/paircolumbus/LetsDrill/subscribers","subscription_url":"https://api.github.com/repos/paircolumbus/LetsDrill/subscription","commits_url":"https://api.github.com/repos/paircolumbus/LetsDrill/commits{/sha}","git_commits_url":"https://api.github.com/repos/paircolumbus/LetsDrill/git/commits{/sha}","comments_url":"https://api.github.com/repos/paircolumbus/LetsDrill/comments{/number}","issue_comment_url":"https://api.github.com/repos/paircolumbus/LetsDrill/issues/comments{/number}","contents_url":"https://api.github.com/repos/paircolumbus/LetsDrill/contents/{+path}","compare_url":"https://api.github.com/repos/paircolumbus/LetsDrill/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paircolumbus/LetsDrill/merges","archive_url":"https://api.github.com/repos/paircolumbus/LetsDrill/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paircolumbus/LetsDrill/downloads","issues_url":"https://api.github.com/repos/paircolumbus/LetsDrill/issues{/number}","pulls_url":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls{/number}","milestones_url":"https://api.github.com/repos/paircolumbus/LetsDrill/milestones{/number}","notifications_url":"https://api.github.com/repos/paircolumbus/LetsDrill/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paircolumbus/LetsDrill/labels{/name}","releases_url":"https://api.github.com/repos/paircolumbus/LetsDrill/releases{/id}","deployments_url":"https://api.github.com/repos/paircolumbus/LetsDrill/deployments","created_at":"2014-09-03T00:12:31Z","updated_at":"2017-01-20T15:17:32Z","pushed_at":"2018-07-02T17:21:53Z","git_url":"git://github.com/paircolumbus/LetsDrill.git","ssh_url":"git@github.com:paircolumbus/LetsDrill.git","clone_url":"https://github.com/paircolumbus/LetsDrill.git","svn_url":"https://github.com/paircolumbus/LetsDrill","homepage":null,"size":17,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":86,"mirror_url":null,"archived":false,"open_issues_count":96,"license":null,"forks":86,"open_issues":96,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/107"},"html":{"href":"https://github.com/paircolumbus/LetsDrill/pull/107"},"issue":{"href":"https://api.github.com/repos/paircolumbus/LetsDrill/issues/107"},"comments":{"href":"https://api.github.com/repos/paircolumbus/LetsDrill/issues/107/comments"},"review_comments":{"href":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/107/comments"},"review_comment":{"href":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/107/commits"},"statuses":{"href":"https://api.github.com/repos/paircolumbus/LetsDrill/statuses/74af948b95e104646087949d3209fc69c5c654ae"}},"author_association":"NONE"}}
{"actor":{"display_login":"mikegee"}}