{"action":"created","comment":{"url":"https://api.github.com/repos/HealthTeacher/dev-exercises/pulls/comments/44287794","id":44287794,"diff_hunk":"@@ -0,0 +1,26 @@\n+class Anagram\n+\n+  def initialize(word)\n+    @word = word\n+  end\n+\n+  def match(potential_angrms)\n+    anagram_list = []\n+    remove_identical_words!(potential_angrms)\n+    potential_angrms.each_with_index do |word, index|\n+      if canonical(word) == canonical(@word)\n+        anagram_list << potential_angrms[index]\n+      end\n+    end\n+    anagram_list\n+  end\n+\n+  def canonical(word)\n+    word.downcase.split('').sort\n+  end\n+\n+  def remove_identical_words!(potential_angrms)\n+    potential_angrms.delete_if { |word| word.downcase == @word }","path":"ruby/anagram/anagram.rb","position":23,"original_position":23,"commit_id":"be327637eaf2ecd591b1dde5bc178b40fca59d15","original_commit_id":"be327637eaf2ecd591b1dde5bc178b40fca59d15","user":{"login":"traviskroberts","id":12857,"avatar_url":"https://avatars.githubusercontent.com/u/12857?v=3","gravatar_id":"","url":"https://api.github.com/users/traviskroberts","html_url":"https://github.com/traviskroberts","followers_url":"https://api.github.com/users/traviskroberts/followers","following_url":"https://api.github.com/users/traviskroberts/following{/other_user}","gists_url":"https://api.github.com/users/traviskroberts/gists{/gist_id}","starred_url":"https://api.github.com/users/traviskroberts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/traviskroberts/subscriptions","organizations_url":"https://api.github.com/users/traviskroberts/orgs","repos_url":"https://api.github.com/users/traviskroberts/repos","events_url":"https://api.github.com/users/traviskroberts/events{/privacy}","received_events_url":"https://api.github.com/users/traviskroberts/received_events","type":"User","site_admin":false},"body":"Good use of Enumerable methods!","created_at":"2015-11-09T15:33:15Z","updated_at":"2015-11-09T15:33:15Z","html_url":"https://github.com/HealthTeacher/dev-exercises/pull/1#discussion_r44287794","pull_request_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/HealthTeacher/dev-exercises/pulls/comments/44287794"},"html":{"href":"https://github.com/HealthTeacher/dev-exercises/pull/1#discussion_r44287794"},"pull_request":{"href":"https://api.github.com/repos/HealthTeacher/dev-exercises/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/HealthTeacher/dev-exercises/pulls/1","id":49610175,"html_url":"https://github.com/HealthTeacher/dev-exercises/pull/1","diff_url":"https://github.com/HealthTeacher/dev-exercises/pull/1.diff","patch_url":"https://github.com/HealthTeacher/dev-exercises/pull/1.patch","issue_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/issues/1","number":1,"state":"open","locked":false,"title":"Dylan solutions","user":{"login":"DylanAndrews","id":11525911,"avatar_url":"https://avatars.githubusercontent.com/u/11525911?v=3","gravatar_id":"","url":"https://api.github.com/users/DylanAndrews","html_url":"https://github.com/DylanAndrews","followers_url":"https://api.github.com/users/DylanAndrews/followers","following_url":"https://api.github.com/users/DylanAndrews/following{/other_user}","gists_url":"https://api.github.com/users/DylanAndrews/gists{/gist_id}","starred_url":"https://api.github.com/users/DylanAndrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DylanAndrews/subscriptions","organizations_url":"https://api.github.com/users/DylanAndrews/orgs","repos_url":"https://api.github.com/users/DylanAndrews/repos","events_url":"https://api.github.com/users/DylanAndrews/events{/privacy}","received_events_url":"https://api.github.com/users/DylanAndrews/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-03T20:52:37Z","updated_at":"2015-11-09T15:33:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"befdd8556208a227c6c3f755784f481574949c2a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/pulls/1/commits","review_comments_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/pulls/1/comments","review_comment_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/issues/1/comments","statuses_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/statuses/be327637eaf2ecd591b1dde5bc178b40fca59d15","head":{"label":"DylanAndrews:dylan_solutions","ref":"dylan_solutions","sha":"be327637eaf2ecd591b1dde5bc178b40fca59d15","user":{"login":"DylanAndrews","id":11525911,"avatar_url":"https://avatars.githubusercontent.com/u/11525911?v=3","gravatar_id":"","url":"https://api.github.com/users/DylanAndrews","html_url":"https://github.com/DylanAndrews","followers_url":"https://api.github.com/users/DylanAndrews/followers","following_url":"https://api.github.com/users/DylanAndrews/following{/other_user}","gists_url":"https://api.github.com/users/DylanAndrews/gists{/gist_id}","starred_url":"https://api.github.com/users/DylanAndrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DylanAndrews/subscriptions","organizations_url":"https://api.github.com/users/DylanAndrews/orgs","repos_url":"https://api.github.com/users/DylanAndrews/repos","events_url":"https://api.github.com/users/DylanAndrews/events{/privacy}","received_events_url":"https://api.github.com/users/DylanAndrews/received_events","type":"User","site_admin":false},"repo":{"id":45415119,"name":"dev-exercises","full_name":"DylanAndrews/dev-exercises","owner":{"login":"DylanAndrews","id":11525911,"avatar_url":"https://avatars.githubusercontent.com/u/11525911?v=3","gravatar_id":"","url":"https://api.github.com/users/DylanAndrews","html_url":"https://github.com/DylanAndrews","followers_url":"https://api.github.com/users/DylanAndrews/followers","following_url":"https://api.github.com/users/DylanAndrews/following{/other_user}","gists_url":"https://api.github.com/users/DylanAndrews/gists{/gist_id}","starred_url":"https://api.github.com/users/DylanAndrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DylanAndrews/subscriptions","organizations_url":"https://api.github.com/users/DylanAndrews/orgs","repos_url":"https://api.github.com/users/DylanAndrews/repos","events_url":"https://api.github.com/users/DylanAndrews/events{/privacy}","received_events_url":"https://api.github.com/users/DylanAndrews/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DylanAndrews/dev-exercises","description":"Exercises for potential developer candidates.","fork":true,"url":"https://api.github.com/repos/DylanAndrews/dev-exercises","forks_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/forks","keys_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/teams","hooks_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/hooks","issue_events_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/issues/events{/number}","events_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/events","assignees_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/assignees{/user}","branches_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/branches{/branch}","tags_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/tags","blobs_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/languages","stargazers_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/stargazers","contributors_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/contributors","subscribers_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/subscribers","subscription_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/subscription","commits_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/issues/comments{/number}","contents_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/contents/{+path}","compare_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/merges","archive_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/downloads","issues_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/issues{/number}","pulls_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/labels{/name}","releases_url":"https://api.github.com/repos/DylanAndrews/dev-exercises/releases{/id}","created_at":"2015-11-02T18:58:28Z","updated_at":"2015-10-26T20:42:42Z","pushed_at":"2015-11-03T20:51:57Z","git_url":"git://github.com/DylanAndrews/dev-exercises.git","ssh_url":"git@github.com:DylanAndrews/dev-exercises.git","clone_url":"https://github.com/DylanAndrews/dev-exercises.git","svn_url":"https://github.com/DylanAndrews/dev-exercises","homepage":null,"size":58,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"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":"HealthTeacher:master","ref":"master","sha":"c00be4c7386cb7001e3a1ed81b5e8faa7bcbef39","user":{"login":"HealthTeacher","id":1416897,"avatar_url":"https://avatars.githubusercontent.com/u/1416897?v=3","gravatar_id":"","url":"https://api.github.com/users/HealthTeacher","html_url":"https://github.com/HealthTeacher","followers_url":"https://api.github.com/users/HealthTeacher/followers","following_url":"https://api.github.com/users/HealthTeacher/following{/other_user}","gists_url":"https://api.github.com/users/HealthTeacher/gists{/gist_id}","starred_url":"https://api.github.com/users/HealthTeacher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HealthTeacher/subscriptions","organizations_url":"https://api.github.com/users/HealthTeacher/orgs","repos_url":"https://api.github.com/users/HealthTeacher/repos","events_url":"https://api.github.com/users/HealthTeacher/events{/privacy}","received_events_url":"https://api.github.com/users/HealthTeacher/received_events","type":"Organization","site_admin":false},"repo":{"id":44995237,"name":"dev-exercises","full_name":"HealthTeacher/dev-exercises","owner":{"login":"HealthTeacher","id":1416897,"avatar_url":"https://avatars.githubusercontent.com/u/1416897?v=3","gravatar_id":"","url":"https://api.github.com/users/HealthTeacher","html_url":"https://github.com/HealthTeacher","followers_url":"https://api.github.com/users/HealthTeacher/followers","following_url":"https://api.github.com/users/HealthTeacher/following{/other_user}","gists_url":"https://api.github.com/users/HealthTeacher/gists{/gist_id}","starred_url":"https://api.github.com/users/HealthTeacher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HealthTeacher/subscriptions","organizations_url":"https://api.github.com/users/HealthTeacher/orgs","repos_url":"https://api.github.com/users/HealthTeacher/repos","events_url":"https://api.github.com/users/HealthTeacher/events{/privacy}","received_events_url":"https://api.github.com/users/HealthTeacher/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HealthTeacher/dev-exercises","description":"Exercises for potential developer candidates.","fork":false,"url":"https://api.github.com/repos/HealthTeacher/dev-exercises","forks_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/forks","keys_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/teams","hooks_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/hooks","issue_events_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/issues/events{/number}","events_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/events","assignees_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/assignees{/user}","branches_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/branches{/branch}","tags_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/tags","blobs_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/git/refs{/sha}","trees_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/statuses/{sha}","languages_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/languages","stargazers_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/stargazers","contributors_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/contributors","subscribers_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/subscribers","subscription_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/subscription","commits_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/commits{/sha}","git_commits_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/git/commits{/sha}","comments_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/comments{/number}","issue_comment_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/issues/comments{/number}","contents_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/contents/{+path}","compare_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/merges","archive_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/downloads","issues_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/issues{/number}","pulls_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/pulls{/number}","milestones_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/milestones{/number}","notifications_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/labels{/name}","releases_url":"https://api.github.com/repos/HealthTeacher/dev-exercises/releases{/id}","created_at":"2015-10-26T20:27:57Z","updated_at":"2015-10-26T20:42:42Z","pushed_at":"2015-11-04T13:51:49Z","git_url":"git://github.com/HealthTeacher/dev-exercises.git","ssh_url":"git@github.com:HealthTeacher/dev-exercises.git","clone_url":"https://github.com/HealthTeacher/dev-exercises.git","svn_url":"https://github.com/HealthTeacher/dev-exercises","homepage":null,"size":106,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HealthTeacher/dev-exercises/pulls/1"},"html":{"href":"https://github.com/HealthTeacher/dev-exercises/pull/1"},"issue":{"href":"https://api.github.com/repos/HealthTeacher/dev-exercises/issues/1"},"comments":{"href":"https://api.github.com/repos/HealthTeacher/dev-exercises/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/HealthTeacher/dev-exercises/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/HealthTeacher/dev-exercises/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HealthTeacher/dev-exercises/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/HealthTeacher/dev-exercises/statuses/be327637eaf2ecd591b1dde5bc178b40fca59d15"}}}}