{"action":"created","comment":{"url":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/comments/49200961","id":49200961,"diff_hunk":"@@ -1,13 +1,31 @@\n def get_letter_grade(integer)\n- \n-  #Put your code here!\n \n+  #Put your code here!\n+  case integer\n+  when (60..69)\n+  \tgrade = \"D\"\n+  when (70..79)\n+  \tgrade = \"C\"\n+  when (80..89)\n+  \tgrade = \"B\"\n+  when (90 ..100)\n+  \tgrade = \"A\"\n+  else \n+  \tgrade = \"F\"\n+  end\n+  grade\n end\n \n def shortest_string(array)\n+\t#I'm making the assumption that the array is an array of strings.\n+\tshortest = array[0]\n \n-  #Put your code here!\n-\n+\tarray.each do |s| \n+\t\tif s.length < shortest.length\n+\t\t\tshortest = s\n+\t\tend\n+\tend\n+\tshortest\n end","path":"letsdrill.rb","position":33,"original_position":33,"commit_id":"4f689729e32f09817990573703256d2e7f6d0aa2","original_commit_id":"4f689729e32f09817990573703256d2e7f6d0aa2","user":{"login":"sampriddy","id":16242791,"avatar_url":"https://avatars.githubusercontent.com/u/16242791?v=3","gravatar_id":"","url":"https://api.github.com/users/sampriddy","html_url":"https://github.com/sampriddy","followers_url":"https://api.github.com/users/sampriddy/followers","following_url":"https://api.github.com/users/sampriddy/following{/other_user}","gists_url":"https://api.github.com/users/sampriddy/gists{/gist_id}","starred_url":"https://api.github.com/users/sampriddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sampriddy/subscriptions","organizations_url":"https://api.github.com/users/sampriddy/orgs","repos_url":"https://api.github.com/users/sampriddy/repos","events_url":"https://api.github.com/users/sampriddy/events{/privacy}","received_events_url":"https://api.github.com/users/sampriddy/received_events","type":"User","site_admin":false},"body":"This works well, but is pretty verbose. Check out Enumerable#sort_by and Enumerable#min_by. [Enumerables docs](http://ruby-doc.org/core-2.3.0/Enumerable.html#method-i-sort_by)","created_at":"2016-01-08T15:42:26Z","updated_at":"2016-01-08T15:42:26Z","html_url":"https://github.com/paircolumbus/LetsDrill/pull/50#discussion_r49200961","pull_request_url":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/50","_links":{"self":{"href":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/comments/49200961"},"html":{"href":"https://github.com/paircolumbus/LetsDrill/pull/50#discussion_r49200961"},"pull_request":{"href":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/50"}}},"pull_request":{"url":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/50","id":55467602,"html_url":"https://github.com/paircolumbus/LetsDrill/pull/50","diff_url":"https://github.com/paircolumbus/LetsDrill/pull/50.diff","patch_url":"https://github.com/paircolumbus/LetsDrill/pull/50.patch","issue_url":"https://api.github.com/repos/paircolumbus/LetsDrill/issues/50","number":50,"state":"open","locked":false,"title":"Austen's Solution","user":{"login":"austenmadden","id":7366727,"avatar_url":"https://avatars.githubusercontent.com/u/7366727?v=3","gravatar_id":"","url":"https://api.github.com/users/austenmadden","html_url":"https://github.com/austenmadden","followers_url":"https://api.github.com/users/austenmadden/followers","following_url":"https://api.github.com/users/austenmadden/following{/other_user}","gists_url":"https://api.github.com/users/austenmadden/gists{/gist_id}","starred_url":"https://api.github.com/users/austenmadden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austenmadden/subscriptions","organizations_url":"https://api.github.com/users/austenmadden/orgs","repos_url":"https://api.github.com/users/austenmadden/repos","events_url":"https://api.github.com/users/austenmadden/events{/privacy}","received_events_url":"https://api.github.com/users/austenmadden/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-08T14:37:09Z","updated_at":"2016-01-08T15:42:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f0bd7c64f52beb75e57bcac569bd4bb9c5c73fd3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/50/commits","review_comments_url":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/50/comments","review_comment_url":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paircolumbus/LetsDrill/issues/50/comments","statuses_url":"https://api.github.com/repos/paircolumbus/LetsDrill/statuses/4f689729e32f09817990573703256d2e7f6d0aa2","head":{"label":"austenmadden:austenmadden","ref":"austenmadden","sha":"4f689729e32f09817990573703256d2e7f6d0aa2","user":{"login":"austenmadden","id":7366727,"avatar_url":"https://avatars.githubusercontent.com/u/7366727?v=3","gravatar_id":"","url":"https://api.github.com/users/austenmadden","html_url":"https://github.com/austenmadden","followers_url":"https://api.github.com/users/austenmadden/followers","following_url":"https://api.github.com/users/austenmadden/following{/other_user}","gists_url":"https://api.github.com/users/austenmadden/gists{/gist_id}","starred_url":"https://api.github.com/users/austenmadden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austenmadden/subscriptions","organizations_url":"https://api.github.com/users/austenmadden/orgs","repos_url":"https://api.github.com/users/austenmadden/repos","events_url":"https://api.github.com/users/austenmadden/events{/privacy}","received_events_url":"https://api.github.com/users/austenmadden/received_events","type":"User","site_admin":false},"repo":{"id":49274847,"name":"LetsDrill","full_name":"austenmadden/LetsDrill","owner":{"login":"austenmadden","id":7366727,"avatar_url":"https://avatars.githubusercontent.com/u/7366727?v=3","gravatar_id":"","url":"https://api.github.com/users/austenmadden","html_url":"https://github.com/austenmadden","followers_url":"https://api.github.com/users/austenmadden/followers","following_url":"https://api.github.com/users/austenmadden/following{/other_user}","gists_url":"https://api.github.com/users/austenmadden/gists{/gist_id}","starred_url":"https://api.github.com/users/austenmadden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/austenmadden/subscriptions","organizations_url":"https://api.github.com/users/austenmadden/orgs","repos_url":"https://api.github.com/users/austenmadden/repos","events_url":"https://api.github.com/users/austenmadden/events{/privacy}","received_events_url":"https://api.github.com/users/austenmadden/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/austenmadden/LetsDrill","description":"Fun, little drills to review our knowledge of Ruby","fork":true,"url":"https://api.github.com/repos/austenmadden/LetsDrill","forks_url":"https://api.github.com/repos/austenmadden/LetsDrill/forks","keys_url":"https://api.github.com/repos/austenmadden/LetsDrill/keys{/key_id}","collaborators_url":"https://api.github.com/repos/austenmadden/LetsDrill/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/austenmadden/LetsDrill/teams","hooks_url":"https://api.github.com/repos/austenmadden/LetsDrill/hooks","issue_events_url":"https://api.github.com/repos/austenmadden/LetsDrill/issues/events{/number}","events_url":"https://api.github.com/repos/austenmadden/LetsDrill/events","assignees_url":"https://api.github.com/repos/austenmadden/LetsDrill/assignees{/user}","branches_url":"https://api.github.com/repos/austenmadden/LetsDrill/branches{/branch}","tags_url":"https://api.github.com/repos/austenmadden/LetsDrill/tags","blobs_url":"https://api.github.com/repos/austenmadden/LetsDrill/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/austenmadden/LetsDrill/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/austenmadden/LetsDrill/git/refs{/sha}","trees_url":"https://api.github.com/repos/austenmadden/LetsDrill/git/trees{/sha}","statuses_url":"https://api.github.com/repos/austenmadden/LetsDrill/statuses/{sha}","languages_url":"https://api.github.com/repos/austenmadden/LetsDrill/languages","stargazers_url":"https://api.github.com/repos/austenmadden/LetsDrill/stargazers","contributors_url":"https://api.github.com/repos/austenmadden/LetsDrill/contributors","subscribers_url":"https://api.github.com/repos/austenmadden/LetsDrill/subscribers","subscription_url":"https://api.github.com/repos/austenmadden/LetsDrill/subscription","commits_url":"https://api.github.com/repos/austenmadden/LetsDrill/commits{/sha}","git_commits_url":"https://api.github.com/repos/austenmadden/LetsDrill/git/commits{/sha}","comments_url":"https://api.github.com/repos/austenmadden/LetsDrill/comments{/number}","issue_comment_url":"https://api.github.com/repos/austenmadden/LetsDrill/issues/comments{/number}","contents_url":"https://api.github.com/repos/austenmadden/LetsDrill/contents/{+path}","compare_url":"https://api.github.com/repos/austenmadden/LetsDrill/compare/{base}...{head}","merges_url":"https://api.github.com/repos/austenmadden/LetsDrill/merges","archive_url":"https://api.github.com/repos/austenmadden/LetsDrill/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/austenmadden/LetsDrill/downloads","issues_url":"https://api.github.com/repos/austenmadden/LetsDrill/issues{/number}","pulls_url":"https://api.github.com/repos/austenmadden/LetsDrill/pulls{/number}","milestones_url":"https://api.github.com/repos/austenmadden/LetsDrill/milestones{/number}","notifications_url":"https://api.github.com/repos/austenmadden/LetsDrill/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/austenmadden/LetsDrill/labels{/name}","releases_url":"https://api.github.com/repos/austenmadden/LetsDrill/releases{/id}","created_at":"2016-01-08T13:56:04Z","updated_at":"2016-01-08T13:56:06Z","pushed_at":"2016-01-08T14:36:04Z","git_url":"git://github.com/austenmadden/LetsDrill.git","ssh_url":"git@github.com:austenmadden/LetsDrill.git","clone_url":"https://github.com/austenmadden/LetsDrill.git","svn_url":"https://github.com/austenmadden/LetsDrill","homepage":null,"size":15,"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":"paircolumbus:master","ref":"master","sha":"99722132d8f3d5d65163bb62fb47645d2fdd3463","user":{"login":"paircolumbus","id":8568348,"avatar_url":"https://avatars.githubusercontent.com/u/8568348?v=3","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,"name":"LetsDrill","full_name":"paircolumbus/LetsDrill","owner":{"login":"paircolumbus","id":8568348,"avatar_url":"https://avatars.githubusercontent.com/u/8568348?v=3","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}","created_at":"2014-09-03T00:12:31Z","updated_at":"2015-04-11T18:15:52Z","pushed_at":"2016-01-08T14:37:09Z","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":450,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"open_issues_count":43,"forks":40,"open_issues":43,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/50"},"html":{"href":"https://github.com/paircolumbus/LetsDrill/pull/50"},"issue":{"href":"https://api.github.com/repos/paircolumbus/LetsDrill/issues/50"},"comments":{"href":"https://api.github.com/repos/paircolumbus/LetsDrill/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paircolumbus/LetsDrill/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/paircolumbus/LetsDrill/statuses/4f689729e32f09817990573703256d2e7f6d0aa2"}}}}