{"action":"created","issue":{"url":"https://api.github.com/repos/omahacodeschool/ruby-toy__most-frequent-integer/issues/7","labels_url":"https://api.github.com/repos/omahacodeschool/ruby-toy__most-frequent-integer/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/omahacodeschool/ruby-toy__most-frequent-integer/issues/7/comments","events_url":"https://api.github.com/repos/omahacodeschool/ruby-toy__most-frequent-integer/issues/7/events","html_url":"https://github.com/omahacodeschool/ruby-toy__most-frequent-integer/pull/7","id":127342576,"number":7,"title":"Done","user":{"login":"jeremystoll","id":16272900,"avatar_url":"https://avatars.githubusercontent.com/u/16272900?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremystoll","html_url":"https://github.com/jeremystoll","followers_url":"https://api.github.com/users/jeremystoll/followers","following_url":"https://api.github.com/users/jeremystoll/following{/other_user}","gists_url":"https://api.github.com/users/jeremystoll/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremystoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremystoll/subscriptions","organizations_url":"https://api.github.com/users/jeremystoll/orgs","repos_url":"https://api.github.com/users/jeremystoll/repos","events_url":"https://api.github.com/users/jeremystoll/events{/privacy}","received_events_url":"https://api.github.com/users/jeremystoll/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-19T01:20:01Z","updated_at":"2016-01-19T20:43:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/omahacodeschool/ruby-toy__most-frequent-integer/pulls/7","html_url":"https://github.com/omahacodeschool/ruby-toy__most-frequent-integer/pull/7","diff_url":"https://github.com/omahacodeschool/ruby-toy__most-frequent-integer/pull/7.diff","patch_url":"https://github.com/omahacodeschool/ruby-toy__most-frequent-integer/pull/7.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/omahacodeschool/ruby-toy__most-frequent-integer/issues/comments/172980605","html_url":"https://github.com/omahacodeschool/ruby-toy__most-frequent-integer/pull/7#issuecomment-172980605","issue_url":"https://api.github.com/repos/omahacodeschool/ruby-toy__most-frequent-integer/issues/7","id":172980605,"user":{"login":"sumeetjain","id":29388,"avatar_url":"https://avatars.githubusercontent.com/u/29388?v=3","gravatar_id":"","url":"https://api.github.com/users/sumeetjain","html_url":"https://github.com/sumeetjain","followers_url":"https://api.github.com/users/sumeetjain/followers","following_url":"https://api.github.com/users/sumeetjain/following{/other_user}","gists_url":"https://api.github.com/users/sumeetjain/gists{/gist_id}","starred_url":"https://api.github.com/users/sumeetjain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumeetjain/subscriptions","organizations_url":"https://api.github.com/users/sumeetjain/orgs","repos_url":"https://api.github.com/users/sumeetjain/repos","events_url":"https://api.github.com/users/sumeetjain/events{/privacy}","received_events_url":"https://api.github.com/users/sumeetjain/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T20:43:13Z","updated_at":"2016-01-19T20:43:13Z","body":"Hi Jeremy. I think you can get to the bottom of this, and I don't want to deprive you of that experience. So my guidance below might seem too indirect, but it's meant to get you thinking about this in the way one needs to in order to find the solution.\r\n\r\n1. Any time you see an if/then dealing with number comparisons, make sure all possible comparisons are being checked. For example, your conditional leaves out the _less than_ check. It only checks for `>` and `==`.\r\n2. Build a table that articulates what your conditional does to a sample set of data. (An example follows.)\r\n\r\nGiven this code...\r\n\r\n```ruby\r\nsum = 0\r\narr.each do |n|\r\n  sum = sum + n\r\nend\r\n```\r\n\r\n...the table that represents it for a sample `arr` of `[2, 4, 4, 6]` would be:\r\n\r\nStep | `n` | `sum` | Code/Notes\r\n----- | ----- | ------- | -------------\r\n1 | 2 | 0 | `sum = sum + n`\r\n2 | 2 | 2 | End of iteration\r\n3 | 4 | 2 | `sum = sum + n`\r\n4 | 4 | 6 | End of iteration\r\n5 | ... | ... | ...\r\n\r\nYou get the idea.\r\n\r\n---\r\n\r\nThese are two things that might help you get closer to figuring this out. Of course, I've [often] been wrong before–so please let me know if I've given inadequate guidance. If I have, it's _my_ fault–not yours. So feel free."}}