{"action":"created","comment":{"url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/comments/111992223","pull_request_review_id":33273224,"id":111992223,"diff_hunk":"@@ -7,36 +7,36 @@ class Diagnostic\n   # Assume each entry in the list implements a length method that returns\n   # a Fixnum.\n   def longest(list)\n-    # Your code goes here\n+    ar.max_by(&:length)\n   end\n \n   # Question 2\n   # Write ruby code to return the sum of entries in the\n   # list supplied (i.e. apply the `+` operator).\n   # Assume each entry implements a `+` method.\n   def sum(list)\n-    # Your code goes here\n+    array.each { |a| sum+=a }","path":"lib/diagnostic.rb","position":14,"original_position":14,"commit_id":"ae8b2bcf4e6470fc3656a243b5ec70f02521b6b0","original_commit_id":"ae8b2bcf4e6470fc3656a243b5ec70f02521b6b0","user":{"login":"jordanallain","id":18097107,"avatar_url":"https://avatars3.githubusercontent.com/u/18097107?v=3","gravatar_id":"","url":"https://api.github.com/users/jordanallain","html_url":"https://github.com/jordanallain","followers_url":"https://api.github.com/users/jordanallain/followers","following_url":"https://api.github.com/users/jordanallain/following{/other_user}","gists_url":"https://api.github.com/users/jordanallain/gists{/gist_id}","starred_url":"https://api.github.com/users/jordanallain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordanallain/subscriptions","organizations_url":"https://api.github.com/users/jordanallain/orgs","repos_url":"https://api.github.com/users/jordanallain/repos","events_url":"https://api.github.com/users/jordanallain/events{/privacy}","received_events_url":"https://api.github.com/users/jordanallain/received_events","type":"User","site_admin":false},"body":"Here's the easy Ruby way to do it:\r\n\r\n`list.reduce(&:+)`","created_at":"2017-04-18T15:53:39Z","updated_at":"2017-04-18T15:53:39Z","html_url":"https://github.com/ga-wdi-boston/ruby-enumerable-diagnostic/pull/148#discussion_r111992223","pull_request_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/148","_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/comments/111992223"},"html":{"href":"https://github.com/ga-wdi-boston/ruby-enumerable-diagnostic/pull/148#discussion_r111992223"},"pull_request":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/148"}}},"pull_request":{"url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/148","id":115930681,"html_url":"https://github.com/ga-wdi-boston/ruby-enumerable-diagnostic/pull/148","diff_url":"https://github.com/ga-wdi-boston/ruby-enumerable-diagnostic/pull/148.diff","patch_url":"https://github.com/ga-wdi-boston/ruby-enumerable-diagnostic/pull/148.patch","issue_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/issues/148","number":148,"state":"open","locked":false,"title":"Fallon response","user":{"login":"jonifallon","id":26150525,"avatar_url":"https://avatars2.githubusercontent.com/u/26150525?v=3","gravatar_id":"","url":"https://api.github.com/users/jonifallon","html_url":"https://github.com/jonifallon","followers_url":"https://api.github.com/users/jonifallon/followers","following_url":"https://api.github.com/users/jonifallon/following{/other_user}","gists_url":"https://api.github.com/users/jonifallon/gists{/gist_id}","starred_url":"https://api.github.com/users/jonifallon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonifallon/subscriptions","organizations_url":"https://api.github.com/users/jonifallon/orgs","repos_url":"https://api.github.com/users/jonifallon/repos","events_url":"https://api.github.com/users/jonifallon/events{/privacy}","received_events_url":"https://api.github.com/users/jonifallon/received_events","type":"User","site_admin":false},"body":"It made more sense yesterday, but with more time I could figure these out.","created_at":"2017-04-14T13:25:41Z","updated_at":"2017-04-18T15:53:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c377a2dcda04cea6218e01b56b3e69da0621ef87","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/148/commits","review_comments_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/148/comments","review_comment_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/issues/148/comments","statuses_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/statuses/ae8b2bcf4e6470fc3656a243b5ec70f02521b6b0","head":{"label":"jonifallon:response","ref":"response","sha":"ae8b2bcf4e6470fc3656a243b5ec70f02521b6b0","user":{"login":"jonifallon","id":26150525,"avatar_url":"https://avatars2.githubusercontent.com/u/26150525?v=3","gravatar_id":"","url":"https://api.github.com/users/jonifallon","html_url":"https://github.com/jonifallon","followers_url":"https://api.github.com/users/jonifallon/followers","following_url":"https://api.github.com/users/jonifallon/following{/other_user}","gists_url":"https://api.github.com/users/jonifallon/gists{/gist_id}","starred_url":"https://api.github.com/users/jonifallon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonifallon/subscriptions","organizations_url":"https://api.github.com/users/jonifallon/orgs","repos_url":"https://api.github.com/users/jonifallon/repos","events_url":"https://api.github.com/users/jonifallon/events{/privacy}","received_events_url":"https://api.github.com/users/jonifallon/received_events","type":"User","site_admin":false},"repo":{"id":88267926,"name":"ruby-enumerable-diagnostic","full_name":"jonifallon/ruby-enumerable-diagnostic","owner":{"login":"jonifallon","id":26150525,"avatar_url":"https://avatars2.githubusercontent.com/u/26150525?v=3","gravatar_id":"","url":"https://api.github.com/users/jonifallon","html_url":"https://github.com/jonifallon","followers_url":"https://api.github.com/users/jonifallon/followers","following_url":"https://api.github.com/users/jonifallon/following{/other_user}","gists_url":"https://api.github.com/users/jonifallon/gists{/gist_id}","starred_url":"https://api.github.com/users/jonifallon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonifallon/subscriptions","organizations_url":"https://api.github.com/users/jonifallon/orgs","repos_url":"https://api.github.com/users/jonifallon/repos","events_url":"https://api.github.com/users/jonifallon/events{/privacy}","received_events_url":"https://api.github.com/users/jonifallon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jonifallon/ruby-enumerable-diagnostic","description":"Diagnostic for \"Ruby Enumerable\" talks","fork":true,"url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic","forks_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/forks","keys_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/teams","hooks_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/hooks","issue_events_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/issues/events{/number}","events_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/events","assignees_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/assignees{/user}","branches_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/branches{/branch}","tags_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/tags","blobs_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/git/refs{/sha}","trees_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/statuses/{sha}","languages_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/languages","stargazers_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/stargazers","contributors_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/contributors","subscribers_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/subscribers","subscription_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/subscription","commits_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/commits{/sha}","git_commits_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/git/commits{/sha}","comments_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/comments{/number}","issue_comment_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/issues/comments{/number}","contents_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/contents/{+path}","compare_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/merges","archive_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/downloads","issues_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/issues{/number}","pulls_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/pulls{/number}","milestones_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/milestones{/number}","notifications_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/labels{/name}","releases_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/releases{/id}","deployments_url":"https://api.github.com/repos/jonifallon/ruby-enumerable-diagnostic/deployments","created_at":"2017-04-14T13:00:16Z","updated_at":"2017-04-14T13:00:18Z","pushed_at":"2017-04-14T13:25:12Z","git_url":"git://github.com/jonifallon/ruby-enumerable-diagnostic.git","ssh_url":"git@github.com:jonifallon/ruby-enumerable-diagnostic.git","clone_url":"https://github.com/jonifallon/ruby-enumerable-diagnostic.git","svn_url":"https://github.com/jonifallon/ruby-enumerable-diagnostic","homepage":"","size":148,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ga-wdi-boston:master","ref":"master","sha":"e9b359c2074060431143ec13bd06406a38e34f3d","user":{"login":"ga-wdi-boston","id":6361298,"avatar_url":"https://avatars0.githubusercontent.com/u/6361298?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-boston","html_url":"https://github.com/ga-wdi-boston","followers_url":"https://api.github.com/users/ga-wdi-boston/followers","following_url":"https://api.github.com/users/ga-wdi-boston/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-boston/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-boston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-boston/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-boston/orgs","repos_url":"https://api.github.com/users/ga-wdi-boston/repos","events_url":"https://api.github.com/users/ga-wdi-boston/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-boston/received_events","type":"Organization","site_admin":false},"repo":{"id":44558147,"name":"ruby-enumerable-diagnostic","full_name":"ga-wdi-boston/ruby-enumerable-diagnostic","owner":{"login":"ga-wdi-boston","id":6361298,"avatar_url":"https://avatars0.githubusercontent.com/u/6361298?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-boston","html_url":"https://github.com/ga-wdi-boston","followers_url":"https://api.github.com/users/ga-wdi-boston/followers","following_url":"https://api.github.com/users/ga-wdi-boston/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-boston/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-boston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-boston/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-boston/orgs","repos_url":"https://api.github.com/users/ga-wdi-boston/repos","events_url":"https://api.github.com/users/ga-wdi-boston/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-boston/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-wdi-boston/ruby-enumerable-diagnostic","description":"Diagnostic for \"Ruby Enumerable\" talks","fork":false,"url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic","forks_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/forks","keys_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/teams","hooks_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/hooks","issue_events_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/issues/events{/number}","events_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/events","assignees_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/assignees{/user}","branches_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/branches{/branch}","tags_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/tags","blobs_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/languages","stargazers_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/stargazers","contributors_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/contributors","subscribers_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/subscribers","subscription_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/subscription","commits_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/contents/{+path}","compare_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/merges","archive_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/downloads","issues_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/issues{/number}","pulls_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/labels{/name}","releases_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/releases{/id}","deployments_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/deployments","created_at":"2015-10-19T19:22:51Z","updated_at":"2016-11-08T17:28:26Z","pushed_at":"2017-04-14T13:31:14Z","git_url":"git://github.com/ga-wdi-boston/ruby-enumerable-diagnostic.git","ssh_url":"git@github.com:ga-wdi-boston/ruby-enumerable-diagnostic.git","clone_url":"https://github.com/ga-wdi-boston/ruby-enumerable-diagnostic.git","svn_url":"https://github.com/ga-wdi-boston/ruby-enumerable-diagnostic","homepage":"","size":148,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":150,"mirror_url":null,"open_issues_count":30,"forks":150,"open_issues":30,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/148"},"html":{"href":"https://github.com/ga-wdi-boston/ruby-enumerable-diagnostic/pull/148"},"issue":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/issues/148"},"comments":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/issues/148/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/148/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/148/commits"},"statuses":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/statuses/ae8b2bcf4e6470fc3656a243b5ec70f02521b6b0"}}}}
{"actor":{"display_login":"jordanallain"}}