{"action":"created","comment":{"url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/comments/27100783","id":27100783,"diff_hunk":"@@ -0,0 +1,41 @@\n+#Show the domains currently publishing on Reddit's top 25 stories\n+\n+require 'json'\n+require 'rest-client'\n+\n+\n+\n+class Domains\n+\tattr_accessor :domain, :domain_name\n+\n+\tdef initialize\n+\t\t@domain_name = domain_name\n+\t\t@headlines = []\n+\t\t@domain = []\n+\t\tjson = RestClient.get('http://www.reddit.com/.json')\n+\t\t@result = JSON.load json\n+\n+\tend\n+\n+\tdef pull_domains\n+\t\t\n+\t\t@result['data']['children'].each do |pull| \n+\t\t  \t@domain_name = pull['data']['domain']\n+\t\t  \t@domain << domain_name","path":"MaryLiu-marygliu/midterm/lib/domains.rb","position":24,"original_position":24,"commit_id":"370c468bc3679f461fbc4a570627558df569a72c","original_commit_id":"370c468bc3679f461fbc4a570627558df569a72c","user":{"login":"dladowitz","id":1074877,"avatar_url":"https://avatars.githubusercontent.com/u/1074877?v=3","gravatar_id":"","url":"https://api.github.com/users/dladowitz","html_url":"https://github.com/dladowitz","followers_url":"https://api.github.com/users/dladowitz/followers","following_url":"https://api.github.com/users/dladowitz/following{/other_user}","gists_url":"https://api.github.com/users/dladowitz/gists{/gist_id}","starred_url":"https://api.github.com/users/dladowitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dladowitz/subscriptions","organizations_url":"https://api.github.com/users/dladowitz/orgs","repos_url":"https://api.github.com/users/dladowitz/repos","events_url":"https://api.github.com/users/dladowitz/events{/privacy}","received_events_url":"https://api.github.com/users/dladowitz/received_events","type":"User","site_admin":false},"body":"here @domain is an array of multiple objects. So it should be pluralized to @domains","created_at":"2015-03-25T08:06:20Z","updated_at":"2015-03-25T08:06:20Z","html_url":"https://github.com/ga-students/bewd_sf_8_homework/pull/123#discussion_r27100783","pull_request_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/123","_links":{"self":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/comments/27100783"},"html":{"href":"https://github.com/ga-students/bewd_sf_8_homework/pull/123#discussion_r27100783"},"pull_request":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/123"}}},"pull_request":{"url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/123","id":31891057,"html_url":"https://github.com/ga-students/bewd_sf_8_homework/pull/123","diff_url":"https://github.com/ga-students/bewd_sf_8_homework/pull/123.diff","patch_url":"https://github.com/ga-students/bewd_sf_8_homework/pull/123.patch","issue_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues/123","number":123,"state":"open","locked":false,"title":"Adding Games on Rails -- Rock Paper Scissors & Secret Number","user":{"login":"marygliu","id":10997874,"avatar_url":"https://avatars.githubusercontent.com/u/10997874?v=3","gravatar_id":"","url":"https://api.github.com/users/marygliu","html_url":"https://github.com/marygliu","followers_url":"https://api.github.com/users/marygliu/followers","following_url":"https://api.github.com/users/marygliu/following{/other_user}","gists_url":"https://api.github.com/users/marygliu/gists{/gist_id}","starred_url":"https://api.github.com/users/marygliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marygliu/subscriptions","organizations_url":"https://api.github.com/users/marygliu/orgs","repos_url":"https://api.github.com/users/marygliu/repos","events_url":"https://api.github.com/users/marygliu/events{/privacy}","received_events_url":"https://api.github.com/users/marygliu/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-25T03:40:45Z","updated_at":"2015-03-25T08:06:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1d830fb5e84c58b04a6cc7a46d8fcfd24e1b4d7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/123/commits","review_comments_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/123/comments","review_comment_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues/123/comments","statuses_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/statuses/370c468bc3679f461fbc4a570627558df569a72c","head":{"label":"marygliu:master","ref":"master","sha":"370c468bc3679f461fbc4a570627558df569a72c","user":{"login":"marygliu","id":10997874,"avatar_url":"https://avatars.githubusercontent.com/u/10997874?v=3","gravatar_id":"","url":"https://api.github.com/users/marygliu","html_url":"https://github.com/marygliu","followers_url":"https://api.github.com/users/marygliu/followers","following_url":"https://api.github.com/users/marygliu/following{/other_user}","gists_url":"https://api.github.com/users/marygliu/gists{/gist_id}","starred_url":"https://api.github.com/users/marygliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marygliu/subscriptions","organizations_url":"https://api.github.com/users/marygliu/orgs","repos_url":"https://api.github.com/users/marygliu/repos","events_url":"https://api.github.com/users/marygliu/events{/privacy}","received_events_url":"https://api.github.com/users/marygliu/received_events","type":"User","site_admin":false},"repo":{"id":31297550,"name":"bewd_sf_8_homework","full_name":"marygliu/bewd_sf_8_homework","owner":{"login":"marygliu","id":10997874,"avatar_url":"https://avatars.githubusercontent.com/u/10997874?v=3","gravatar_id":"","url":"https://api.github.com/users/marygliu","html_url":"https://github.com/marygliu","followers_url":"https://api.github.com/users/marygliu/followers","following_url":"https://api.github.com/users/marygliu/following{/other_user}","gists_url":"https://api.github.com/users/marygliu/gists{/gist_id}","starred_url":"https://api.github.com/users/marygliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marygliu/subscriptions","organizations_url":"https://api.github.com/users/marygliu/orgs","repos_url":"https://api.github.com/users/marygliu/repos","events_url":"https://api.github.com/users/marygliu/events{/privacy}","received_events_url":"https://api.github.com/users/marygliu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/marygliu/bewd_sf_8_homework","description":"","fork":true,"url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework","forks_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/forks","keys_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/teams","hooks_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/hooks","issue_events_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/issues/events{/number}","events_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/events","assignees_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/assignees{/user}","branches_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/branches{/branch}","tags_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/tags","blobs_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/statuses/{sha}","languages_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/languages","stargazers_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/stargazers","contributors_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/contributors","subscribers_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/subscribers","subscription_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/subscription","commits_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/contents/{+path}","compare_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/merges","archive_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/downloads","issues_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/issues{/number}","pulls_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/pulls{/number}","milestones_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/milestones{/number}","notifications_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/labels{/name}","releases_url":"https://api.github.com/repos/marygliu/bewd_sf_8_homework/releases{/id}","created_at":"2015-02-25T04:41:38Z","updated_at":"2015-03-25T03:42:55Z","pushed_at":"2015-03-25T03:42:52Z","git_url":"git://github.com/marygliu/bewd_sf_8_homework.git","ssh_url":"git@github.com:marygliu/bewd_sf_8_homework.git","clone_url":"https://github.com/marygliu/bewd_sf_8_homework.git","svn_url":"https://github.com/marygliu/bewd_sf_8_homework","homepage":null,"size":448,"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":"ga-students:master","ref":"master","sha":"85a83fef08a5c0a6153333895bb16c7c2f18999d","user":{"login":"ga-students","id":5048067,"avatar_url":"https://avatars.githubusercontent.com/u/5048067?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-students","html_url":"https://github.com/ga-students","followers_url":"https://api.github.com/users/ga-students/followers","following_url":"https://api.github.com/users/ga-students/following{/other_user}","gists_url":"https://api.github.com/users/ga-students/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-students/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-students/subscriptions","organizations_url":"https://api.github.com/users/ga-students/orgs","repos_url":"https://api.github.com/users/ga-students/repos","events_url":"https://api.github.com/users/ga-students/events{/privacy}","received_events_url":"https://api.github.com/users/ga-students/received_events","type":"Organization","site_admin":false},"repo":{"id":31043896,"name":"bewd_sf_8_homework","full_name":"ga-students/bewd_sf_8_homework","owner":{"login":"ga-students","id":5048067,"avatar_url":"https://avatars.githubusercontent.com/u/5048067?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-students","html_url":"https://github.com/ga-students","followers_url":"https://api.github.com/users/ga-students/followers","following_url":"https://api.github.com/users/ga-students/following{/other_user}","gists_url":"https://api.github.com/users/ga-students/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-students/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-students/subscriptions","organizations_url":"https://api.github.com/users/ga-students/orgs","repos_url":"https://api.github.com/users/ga-students/repos","events_url":"https://api.github.com/users/ga-students/events{/privacy}","received_events_url":"https://api.github.com/users/ga-students/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-students/bewd_sf_8_homework","description":"","fork":false,"url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework","forks_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/forks","keys_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/teams","hooks_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/hooks","issue_events_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues/events{/number}","events_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/events","assignees_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/assignees{/user}","branches_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/branches{/branch}","tags_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/tags","blobs_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/languages","stargazers_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/stargazers","contributors_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/contributors","subscribers_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/subscribers","subscription_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/subscription","commits_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/contents/{+path}","compare_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/merges","archive_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/downloads","issues_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues{/number}","pulls_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/labels{/name}","releases_url":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/releases{/id}","created_at":"2015-02-20T00:10:49Z","updated_at":"2015-03-25T07:37:04Z","pushed_at":"2015-03-25T07:37:03Z","git_url":"git://github.com/ga-students/bewd_sf_8_homework.git","ssh_url":"git@github.com:ga-students/bewd_sf_8_homework.git","clone_url":"https://github.com/ga-students/bewd_sf_8_homework.git","svn_url":"https://github.com/ga-students/bewd_sf_8_homework","homepage":null,"size":30643,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":6,"forks":31,"open_issues":6,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/123"},"html":{"href":"https://github.com/ga-students/bewd_sf_8_homework/pull/123"},"issue":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues/123"},"comments":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/issues/123/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/123/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/pulls/123/commits"},"statuses":{"href":"https://api.github.com/repos/ga-students/bewd_sf_8_homework/statuses/370c468bc3679f461fbc4a570627558df569a72c"}}}}