{"action":"created","comment":{"url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pulls/comments/85321411","pull_request_review_id":6043277,"id":85321411,"diff_hunk":"@@ -13,9 +13,22 @@\n   2008 => 'List_of_MPs_elected_in_the_Mongolian_legislative_election,_2008',\n }\n \n+class Interaction\n+  def initialize(url)\n+    @url = url\n+  end\n+\n+  def noko\n+    @noko ||= Nokogiri::HTML(open(url).read)","path":"scraper.rb","position":10,"original_position":10,"commit_id":"77312745610693b447dd266186566a1e6cd51f3d","original_commit_id":"77312745610693b447dd266186566a1e6cd51f3d","user":{"login":"chrismytton","id":22996,"avatar_url":"https://avatars.githubusercontent.com/u/22996?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismytton","html_url":"https://github.com/chrismytton","followers_url":"https://api.github.com/users/chrismytton/followers","following_url":"https://api.github.com/users/chrismytton/following{/other_user}","gists_url":"https://api.github.com/users/chrismytton/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismytton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismytton/subscriptions","organizations_url":"https://api.github.com/users/chrismytton/orgs","repos_url":"https://api.github.com/users/chrismytton/repos","events_url":"https://api.github.com/users/chrismytton/events{/privacy}","received_events_url":"https://api.github.com/users/chrismytton/received_events","type":"User","site_admin":false},"body":"I guess the `open-uri` response could probably be pulled into it's own method to make things a bit clearer.","created_at":"2016-10-27T11:58:55Z","updated_at":"2016-10-27T12:03:16Z","html_url":"https://github.com/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pull/7#discussion_r85321411","pull_request_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pulls/comments/85321411"},"html":{"href":"https://github.com/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pull/7#discussion_r85321411"},"pull_request":{"href":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pulls/7","id":91185087,"html_url":"https://github.com/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pull/7","diff_url":"https://github.com/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pull/7.diff","patch_url":"https://github.com/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pull/7.patch","issue_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/issues/7","number":7,"state":"open","locked":false,"title":"[WIP] Add a class to encapsulate http interactions","user":{"login":"chrismytton","id":22996,"avatar_url":"https://avatars.githubusercontent.com/u/22996?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismytton","html_url":"https://github.com/chrismytton","followers_url":"https://api.github.com/users/chrismytton/followers","following_url":"https://api.github.com/users/chrismytton/following{/other_user}","gists_url":"https://api.github.com/users/chrismytton/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismytton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismytton/subscriptions","organizations_url":"https://api.github.com/users/chrismytton/orgs","repos_url":"https://api.github.com/users/chrismytton/repos","events_url":"https://api.github.com/users/chrismytton/events{/privacy}","received_events_url":"https://api.github.com/users/chrismytton/received_events","type":"User","site_admin":false},"body":"Encapsulate the details of making an HTTP request and wrapping the response body in a nokogiri instance behind a simple interface.","created_at":"2016-10-27T11:52:19Z","updated_at":"2016-10-27T12:03:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dd699b30f92263e5823bb35b56346d994d24bd81","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pulls/7/commits","review_comments_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pulls/7/comments","review_comment_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/issues/7/comments","statuses_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/statuses/77312745610693b447dd266186566a1e6cd51f3d","head":{"label":"everypolitician-scrapers:interaction-class","ref":"interaction-class","sha":"77312745610693b447dd266186566a1e6cd51f3d","user":{"login":"everypolitician-scrapers","id":18443033,"avatar_url":"https://avatars.githubusercontent.com/u/18443033?v=3","gravatar_id":"","url":"https://api.github.com/users/everypolitician-scrapers","html_url":"https://github.com/everypolitician-scrapers","followers_url":"https://api.github.com/users/everypolitician-scrapers/followers","following_url":"https://api.github.com/users/everypolitician-scrapers/following{/other_user}","gists_url":"https://api.github.com/users/everypolitician-scrapers/gists{/gist_id}","starred_url":"https://api.github.com/users/everypolitician-scrapers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everypolitician-scrapers/subscriptions","organizations_url":"https://api.github.com/users/everypolitician-scrapers/orgs","repos_url":"https://api.github.com/users/everypolitician-scrapers/repos","events_url":"https://api.github.com/users/everypolitician-scrapers/events{/privacy}","received_events_url":"https://api.github.com/users/everypolitician-scrapers/received_events","type":"Organization","site_admin":false},"repo":{"id":68108567,"name":"mongolia-khurai-wp-multiple-terms","full_name":"everypolitician-scrapers/mongolia-khurai-wp-multiple-terms","owner":{"login":"everypolitician-scrapers","id":18443033,"avatar_url":"https://avatars.githubusercontent.com/u/18443033?v=3","gravatar_id":"","url":"https://api.github.com/users/everypolitician-scrapers","html_url":"https://github.com/everypolitician-scrapers","followers_url":"https://api.github.com/users/everypolitician-scrapers/followers","following_url":"https://api.github.com/users/everypolitician-scrapers/following{/other_user}","gists_url":"https://api.github.com/users/everypolitician-scrapers/gists{/gist_id}","starred_url":"https://api.github.com/users/everypolitician-scrapers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everypolitician-scrapers/subscriptions","organizations_url":"https://api.github.com/users/everypolitician-scrapers/orgs","repos_url":"https://api.github.com/users/everypolitician-scrapers/repos","events_url":"https://api.github.com/users/everypolitician-scrapers/events{/privacy}","received_events_url":"https://api.github.com/users/everypolitician-scrapers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms","description":null,"fork":false,"url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms","forks_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/forks","keys_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/teams","hooks_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/hooks","issue_events_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/issues/events{/number}","events_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/events","assignees_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/assignees{/user}","branches_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/branches{/branch}","tags_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/tags","blobs_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/git/refs{/sha}","trees_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/statuses/{sha}","languages_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/languages","stargazers_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/stargazers","contributors_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/contributors","subscribers_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/subscribers","subscription_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/subscription","commits_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/commits{/sha}","git_commits_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/git/commits{/sha}","comments_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/comments{/number}","issue_comment_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/issues/comments{/number}","contents_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/contents/{+path}","compare_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/merges","archive_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/downloads","issues_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/issues{/number}","pulls_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pulls{/number}","milestones_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/milestones{/number}","notifications_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/labels{/name}","releases_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/releases{/id}","deployments_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/deployments","created_at":"2016-09-13T12:59:57Z","updated_at":"2016-10-24T12:19:27Z","pushed_at":"2016-10-27T11:56:48Z","git_url":"git://github.com/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms.git","ssh_url":"git@github.com:everypolitician-scrapers/mongolia-khurai-wp-multiple-terms.git","clone_url":"https://github.com/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms.git","svn_url":"https://github.com/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms","homepage":"https://morph.io/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms","size":114,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"everypolitician-scrapers:master","ref":"master","sha":"29c1eb63238030ea3f019ebec694802dfac492f4","user":{"login":"everypolitician-scrapers","id":18443033,"avatar_url":"https://avatars.githubusercontent.com/u/18443033?v=3","gravatar_id":"","url":"https://api.github.com/users/everypolitician-scrapers","html_url":"https://github.com/everypolitician-scrapers","followers_url":"https://api.github.com/users/everypolitician-scrapers/followers","following_url":"https://api.github.com/users/everypolitician-scrapers/following{/other_user}","gists_url":"https://api.github.com/users/everypolitician-scrapers/gists{/gist_id}","starred_url":"https://api.github.com/users/everypolitician-scrapers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everypolitician-scrapers/subscriptions","organizations_url":"https://api.github.com/users/everypolitician-scrapers/orgs","repos_url":"https://api.github.com/users/everypolitician-scrapers/repos","events_url":"https://api.github.com/users/everypolitician-scrapers/events{/privacy}","received_events_url":"https://api.github.com/users/everypolitician-scrapers/received_events","type":"Organization","site_admin":false},"repo":{"id":68108567,"name":"mongolia-khurai-wp-multiple-terms","full_name":"everypolitician-scrapers/mongolia-khurai-wp-multiple-terms","owner":{"login":"everypolitician-scrapers","id":18443033,"avatar_url":"https://avatars.githubusercontent.com/u/18443033?v=3","gravatar_id":"","url":"https://api.github.com/users/everypolitician-scrapers","html_url":"https://github.com/everypolitician-scrapers","followers_url":"https://api.github.com/users/everypolitician-scrapers/followers","following_url":"https://api.github.com/users/everypolitician-scrapers/following{/other_user}","gists_url":"https://api.github.com/users/everypolitician-scrapers/gists{/gist_id}","starred_url":"https://api.github.com/users/everypolitician-scrapers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everypolitician-scrapers/subscriptions","organizations_url":"https://api.github.com/users/everypolitician-scrapers/orgs","repos_url":"https://api.github.com/users/everypolitician-scrapers/repos","events_url":"https://api.github.com/users/everypolitician-scrapers/events{/privacy}","received_events_url":"https://api.github.com/users/everypolitician-scrapers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms","description":null,"fork":false,"url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms","forks_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/forks","keys_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/teams","hooks_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/hooks","issue_events_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/issues/events{/number}","events_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/events","assignees_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/assignees{/user}","branches_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/branches{/branch}","tags_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/tags","blobs_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/git/refs{/sha}","trees_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/statuses/{sha}","languages_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/languages","stargazers_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/stargazers","contributors_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/contributors","subscribers_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/subscribers","subscription_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/subscription","commits_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/commits{/sha}","git_commits_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/git/commits{/sha}","comments_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/comments{/number}","issue_comment_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/issues/comments{/number}","contents_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/contents/{+path}","compare_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/merges","archive_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/downloads","issues_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/issues{/number}","pulls_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pulls{/number}","milestones_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/milestones{/number}","notifications_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/labels{/name}","releases_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/releases{/id}","deployments_url":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/deployments","created_at":"2016-09-13T12:59:57Z","updated_at":"2016-10-24T12:19:27Z","pushed_at":"2016-10-27T11:56:48Z","git_url":"git://github.com/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms.git","ssh_url":"git@github.com:everypolitician-scrapers/mongolia-khurai-wp-multiple-terms.git","clone_url":"https://github.com/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms.git","svn_url":"https://github.com/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms","homepage":"https://morph.io/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms","size":114,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pulls/7"},"html":{"href":"https://github.com/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pull/7"},"issue":{"href":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/issues/7"},"comments":{"href":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/everypolitician-scrapers/mongolia-khurai-wp-multiple-terms/statuses/77312745610693b447dd266186566a1e6cd51f3d"}}}}
{"actor":{"display_login":"chrismytton"}}