{"action":"created","comment":{"url":"https://api.github.com/repos/RubySteps/21-day-challenge/pulls/comments/28552236","id":28552236,"diff_hunk":"@@ -0,0 +1,25 @@\n+class Fixnum\n+  def prime_factor_of?(number)\n+    number % self == 0\n+  end\n+end\n+\n+class Raindrops\n+  PRIME_FACTORS = [3, 5, 7]\n+\n+  SOUNDS_FOR_FACTORS = {\n+    '3' => 'Pling',\n+    '5' => 'Plang',\n+    '7' => 'Plong'\n+  }\n+  \n+  def self.convert(number)\n+    PRIME_FACTORS.each_with_object(sound = '') do |factor|\n+      sound << SOUNDS_FOR_FACTORS[factor.to_s] if factor.prime_factor_of?(number)\n+    end\n+    \n+    return number.to_s if sound.empty?\n+    \n+    sound","path":"2_adventures/001/lenn4rd/03_raindrops_exercise/raindrops.rb","position":23,"original_position":23,"commit_id":"6af8e1fa18eb5ab46bdcc356158795ce98b7c649","original_commit_id":"6af8e1fa18eb5ab46bdcc356158795ce98b7c649","user":{"login":"kotp","id":16747,"avatar_url":"https://avatars.githubusercontent.com/u/16747?v=3","gravatar_id":"","url":"https://api.github.com/users/kotp","html_url":"https://github.com/kotp","followers_url":"https://api.github.com/users/kotp/followers","following_url":"https://api.github.com/users/kotp/following{/other_user}","gists_url":"https://api.github.com/users/kotp/gists{/gist_id}","starred_url":"https://api.github.com/users/kotp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kotp/subscriptions","organizations_url":"https://api.github.com/users/kotp/orgs","repos_url":"https://api.github.com/users/kotp/repos","events_url":"https://api.github.com/users/kotp/events{/privacy}","received_events_url":"https://api.github.com/users/kotp/received_events","type":"User","site_admin":false},"body":"What do you think about the third option?  (That I haven't written yet?)\r\n\r\n` sound.emtpy? and number or sound`\r\n\r\nDoes that immediatey make more sense to as it reads compared to the ones with the non-word syntax?","created_at":"2015-04-16T21:35:57Z","updated_at":"2015-04-16T21:35:57Z","html_url":"https://github.com/RubySteps/21-day-challenge/pull/276#discussion_r28552236","pull_request_url":"https://api.github.com/repos/RubySteps/21-day-challenge/pulls/276","_links":{"self":{"href":"https://api.github.com/repos/RubySteps/21-day-challenge/pulls/comments/28552236"},"html":{"href":"https://github.com/RubySteps/21-day-challenge/pull/276#discussion_r28552236"},"pull_request":{"href":"https://api.github.com/repos/RubySteps/21-day-challenge/pulls/276"}}},"pull_request":{"url":"https://api.github.com/repos/RubySteps/21-day-challenge/pulls/276","id":33465963,"html_url":"https://github.com/RubySteps/21-day-challenge/pull/276","diff_url":"https://github.com/RubySteps/21-day-challenge/pull/276.diff","patch_url":"https://github.com/RubySteps/21-day-challenge/pull/276.patch","issue_url":"https://api.github.com/repos/RubySteps/21-day-challenge/issues/276","number":276,"state":"closed","locked":false,"title":"Add day 3: The raindrops Exercism task","user":{"login":"lenn4rd","id":44819,"avatar_url":"https://avatars.githubusercontent.com/u/44819?v=3","gravatar_id":"","url":"https://api.github.com/users/lenn4rd","html_url":"https://github.com/lenn4rd","followers_url":"https://api.github.com/users/lenn4rd/followers","following_url":"https://api.github.com/users/lenn4rd/following{/other_user}","gists_url":"https://api.github.com/users/lenn4rd/gists{/gist_id}","starred_url":"https://api.github.com/users/lenn4rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenn4rd/subscriptions","organizations_url":"https://api.github.com/users/lenn4rd/orgs","repos_url":"https://api.github.com/users/lenn4rd/repos","events_url":"https://api.github.com/users/lenn4rd/events{/privacy}","received_events_url":"https://api.github.com/users/lenn4rd/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-16T16:01:05Z","updated_at":"2015-04-16T21:35:57Z","closed_at":"2015-04-16T18:03:21Z","merged_at":"2015-04-16T18:03:21Z","merge_commit_sha":"cadf9e1b91981e3d9d5301509225ad4cf3b565fa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RubySteps/21-day-challenge/pulls/276/commits","review_comments_url":"https://api.github.com/repos/RubySteps/21-day-challenge/pulls/276/comments","review_comment_url":"https://api.github.com/repos/RubySteps/21-day-challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RubySteps/21-day-challenge/issues/276/comments","statuses_url":"https://api.github.com/repos/RubySteps/21-day-challenge/statuses/6af8e1fa18eb5ab46bdcc356158795ce98b7c649","head":{"label":"lenn4rd:master","ref":"master","sha":"6af8e1fa18eb5ab46bdcc356158795ce98b7c649","user":{"login":"lenn4rd","id":44819,"avatar_url":"https://avatars.githubusercontent.com/u/44819?v=3","gravatar_id":"","url":"https://api.github.com/users/lenn4rd","html_url":"https://github.com/lenn4rd","followers_url":"https://api.github.com/users/lenn4rd/followers","following_url":"https://api.github.com/users/lenn4rd/following{/other_user}","gists_url":"https://api.github.com/users/lenn4rd/gists{/gist_id}","starred_url":"https://api.github.com/users/lenn4rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenn4rd/subscriptions","organizations_url":"https://api.github.com/users/lenn4rd/orgs","repos_url":"https://api.github.com/users/lenn4rd/repos","events_url":"https://api.github.com/users/lenn4rd/events{/privacy}","received_events_url":"https://api.github.com/users/lenn4rd/received_events","type":"User","site_admin":false},"repo":{"id":33662862,"name":"21-day-challenge","full_name":"lenn4rd/21-day-challenge","owner":{"login":"lenn4rd","id":44819,"avatar_url":"https://avatars.githubusercontent.com/u/44819?v=3","gravatar_id":"","url":"https://api.github.com/users/lenn4rd","html_url":"https://github.com/lenn4rd","followers_url":"https://api.github.com/users/lenn4rd/followers","following_url":"https://api.github.com/users/lenn4rd/following{/other_user}","gists_url":"https://api.github.com/users/lenn4rd/gists{/gist_id}","starred_url":"https://api.github.com/users/lenn4rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenn4rd/subscriptions","organizations_url":"https://api.github.com/users/lenn4rd/orgs","repos_url":"https://api.github.com/users/lenn4rd/repos","events_url":"https://api.github.com/users/lenn4rd/events{/privacy}","received_events_url":"https://api.github.com/users/lenn4rd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lenn4rd/21-day-challenge","description":"","fork":true,"url":"https://api.github.com/repos/lenn4rd/21-day-challenge","forks_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/forks","keys_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/teams","hooks_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/hooks","issue_events_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/events","assignees_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/tags","blobs_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/languages","stargazers_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/stargazers","contributors_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/contributors","subscribers_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/subscribers","subscription_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/subscription","commits_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/merges","archive_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/downloads","issues_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/labels{/name}","releases_url":"https://api.github.com/repos/lenn4rd/21-day-challenge/releases{/id}","created_at":"2015-04-09T10:25:54Z","updated_at":"2015-04-16T21:08:35Z","pushed_at":"2015-04-16T21:08:34Z","git_url":"git://github.com/lenn4rd/21-day-challenge.git","ssh_url":"git@github.com:lenn4rd/21-day-challenge.git","clone_url":"https://github.com/lenn4rd/21-day-challenge.git","svn_url":"https://github.com/lenn4rd/21-day-challenge","homepage":"http://www.rubysteps.com","size":373,"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":"RubySteps:master","ref":"master","sha":"3304fd3371b68cf8795cae567352120d5f0c9445","user":{"login":"RubySteps","id":8400100,"avatar_url":"https://avatars.githubusercontent.com/u/8400100?v=3","gravatar_id":"","url":"https://api.github.com/users/RubySteps","html_url":"https://github.com/RubySteps","followers_url":"https://api.github.com/users/RubySteps/followers","following_url":"https://api.github.com/users/RubySteps/following{/other_user}","gists_url":"https://api.github.com/users/RubySteps/gists{/gist_id}","starred_url":"https://api.github.com/users/RubySteps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubySteps/subscriptions","organizations_url":"https://api.github.com/users/RubySteps/orgs","repos_url":"https://api.github.com/users/RubySteps/repos","events_url":"https://api.github.com/users/RubySteps/events{/privacy}","received_events_url":"https://api.github.com/users/RubySteps/received_events","type":"Organization","site_admin":false},"repo":{"id":33288698,"name":"21-day-challenge","full_name":"RubySteps/21-day-challenge","owner":{"login":"RubySteps","id":8400100,"avatar_url":"https://avatars.githubusercontent.com/u/8400100?v=3","gravatar_id":"","url":"https://api.github.com/users/RubySteps","html_url":"https://github.com/RubySteps","followers_url":"https://api.github.com/users/RubySteps/followers","following_url":"https://api.github.com/users/RubySteps/following{/other_user}","gists_url":"https://api.github.com/users/RubySteps/gists{/gist_id}","starred_url":"https://api.github.com/users/RubySteps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubySteps/subscriptions","organizations_url":"https://api.github.com/users/RubySteps/orgs","repos_url":"https://api.github.com/users/RubySteps/repos","events_url":"https://api.github.com/users/RubySteps/events{/privacy}","received_events_url":"https://api.github.com/users/RubySteps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RubySteps/21-day-challenge","description":"","fork":false,"url":"https://api.github.com/repos/RubySteps/21-day-challenge","forks_url":"https://api.github.com/repos/RubySteps/21-day-challenge/forks","keys_url":"https://api.github.com/repos/RubySteps/21-day-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RubySteps/21-day-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RubySteps/21-day-challenge/teams","hooks_url":"https://api.github.com/repos/RubySteps/21-day-challenge/hooks","issue_events_url":"https://api.github.com/repos/RubySteps/21-day-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/RubySteps/21-day-challenge/events","assignees_url":"https://api.github.com/repos/RubySteps/21-day-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/RubySteps/21-day-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/RubySteps/21-day-challenge/tags","blobs_url":"https://api.github.com/repos/RubySteps/21-day-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RubySteps/21-day-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RubySteps/21-day-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/RubySteps/21-day-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RubySteps/21-day-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/RubySteps/21-day-challenge/languages","stargazers_url":"https://api.github.com/repos/RubySteps/21-day-challenge/stargazers","contributors_url":"https://api.github.com/repos/RubySteps/21-day-challenge/contributors","subscribers_url":"https://api.github.com/repos/RubySteps/21-day-challenge/subscribers","subscription_url":"https://api.github.com/repos/RubySteps/21-day-challenge/subscription","commits_url":"https://api.github.com/repos/RubySteps/21-day-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/RubySteps/21-day-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/RubySteps/21-day-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/RubySteps/21-day-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/RubySteps/21-day-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/RubySteps/21-day-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RubySteps/21-day-challenge/merges","archive_url":"https://api.github.com/repos/RubySteps/21-day-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RubySteps/21-day-challenge/downloads","issues_url":"https://api.github.com/repos/RubySteps/21-day-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/RubySteps/21-day-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/RubySteps/21-day-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/RubySteps/21-day-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RubySteps/21-day-challenge/labels{/name}","releases_url":"https://api.github.com/repos/RubySteps/21-day-challenge/releases{/id}","created_at":"2015-04-02T04:12:21Z","updated_at":"2015-04-16T18:30:59Z","pushed_at":"2015-04-16T21:25:07Z","git_url":"git://github.com/RubySteps/21-day-challenge.git","ssh_url":"git@github.com:RubySteps/21-day-challenge.git","clone_url":"https://github.com/RubySteps/21-day-challenge.git","svn_url":"https://github.com/RubySteps/21-day-challenge","homepage":null,"size":3937,"stargazers_count":12,"watchers_count":12,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":81,"mirror_url":null,"open_issues_count":11,"forks":81,"open_issues":11,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RubySteps/21-day-challenge/pulls/276"},"html":{"href":"https://github.com/RubySteps/21-day-challenge/pull/276"},"issue":{"href":"https://api.github.com/repos/RubySteps/21-day-challenge/issues/276"},"comments":{"href":"https://api.github.com/repos/RubySteps/21-day-challenge/issues/276/comments"},"review_comments":{"href":"https://api.github.com/repos/RubySteps/21-day-challenge/pulls/276/comments"},"review_comment":{"href":"https://api.github.com/repos/RubySteps/21-day-challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RubySteps/21-day-challenge/pulls/276/commits"},"statuses":{"href":"https://api.github.com/repos/RubySteps/21-day-challenge/statuses/6af8e1fa18eb5ab46bdcc356158795ce98b7c649"}}}}