{"action":"created","comment":{"url":"https://api.github.com/repos/Validic/validic/pulls/comments/50244883","id":50244883,"diff_hunk":"@@ -11,5 +13,23 @@ def initialize(summary, response)\n         @attributes = response\n       end\n     end\n+\n+    def next\n+      extend Validic::REST::Utils","path":"lib/validic/response.rb","position":20,"original_position":20,"commit_id":"aa81fc7da1db19787e9df920440bdc4bdb1cc990","original_commit_id":"fcb98b46d1924cf9d4101bb6cefd136b3563f47b","user":{"login":"jaysonlarin","id":1018527,"avatar_url":"https://avatars.githubusercontent.com/u/1018527?v=3","gravatar_id":"","url":"https://api.github.com/users/jaysonlarin","html_url":"https://github.com/jaysonlarin","followers_url":"https://api.github.com/users/jaysonlarin/followers","following_url":"https://api.github.com/users/jaysonlarin/following{/other_user}","gists_url":"https://api.github.com/users/jaysonlarin/gists{/gist_id}","starred_url":"https://api.github.com/users/jaysonlarin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaysonlarin/subscriptions","organizations_url":"https://api.github.com/users/jaysonlarin/orgs","repos_url":"https://api.github.com/users/jaysonlarin/repos","events_url":"https://api.github.com/users/jaysonlarin/events{/privacy}","received_events_url":"https://api.github.com/users/jaysonlarin/received_events","type":"User","site_admin":false},"body":"this may require a revamp of what we have now, can we do the refactor on a later version?","created_at":"2016-01-20T11:49:50Z","updated_at":"2016-01-20T11:49:50Z","html_url":"https://github.com/Validic/validic/pull/32#discussion_r50244883","pull_request_url":"https://api.github.com/repos/Validic/validic/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/Validic/validic/pulls/comments/50244883"},"html":{"href":"https://github.com/Validic/validic/pull/32#discussion_r50244883"},"pull_request":{"href":"https://api.github.com/repos/Validic/validic/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/Validic/validic/pulls/32","id":55910443,"html_url":"https://github.com/Validic/validic/pull/32","diff_url":"https://github.com/Validic/validic/pull/32.diff","patch_url":"https://github.com/Validic/validic/pull/32.patch","issue_url":"https://api.github.com/repos/Validic/validic/issues/32","number":32,"state":"open","locked":false,"title":"Response next previous","user":{"login":"jaysonlarin","id":1018527,"avatar_url":"https://avatars.githubusercontent.com/u/1018527?v=3","gravatar_id":"","url":"https://api.github.com/users/jaysonlarin","html_url":"https://github.com/jaysonlarin","followers_url":"https://api.github.com/users/jaysonlarin/followers","following_url":"https://api.github.com/users/jaysonlarin/following{/other_user}","gists_url":"https://api.github.com/users/jaysonlarin/gists{/gist_id}","starred_url":"https://api.github.com/users/jaysonlarin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaysonlarin/subscriptions","organizations_url":"https://api.github.com/users/jaysonlarin/orgs","repos_url":"https://api.github.com/users/jaysonlarin/repos","events_url":"https://api.github.com/users/jaysonlarin/events{/privacy}","received_events_url":"https://api.github.com/users/jaysonlarin/received_events","type":"User","site_admin":false},"body":"With a Validic::Reponse, we can call the next or previous page simply by making a call to .next or .previous\r\n\r\n- response.next\r\n- response.previous ","created_at":"2016-01-13T15:19:48Z","updated_at":"2016-01-20T11:49:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7ee646e3c683784a57e52afb69655eb12d3d5669","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Validic/validic/pulls/32/commits","review_comments_url":"https://api.github.com/repos/Validic/validic/pulls/32/comments","review_comment_url":"https://api.github.com/repos/Validic/validic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Validic/validic/issues/32/comments","statuses_url":"https://api.github.com/repos/Validic/validic/statuses/aa81fc7da1db19787e9df920440bdc4bdb1cc990","head":{"label":"Validic:response_next_previous","ref":"response_next_previous","sha":"aa81fc7da1db19787e9df920440bdc4bdb1cc990","user":{"login":"Validic","id":4115118,"avatar_url":"https://avatars.githubusercontent.com/u/4115118?v=3","gravatar_id":"","url":"https://api.github.com/users/Validic","html_url":"https://github.com/Validic","followers_url":"https://api.github.com/users/Validic/followers","following_url":"https://api.github.com/users/Validic/following{/other_user}","gists_url":"https://api.github.com/users/Validic/gists{/gist_id}","starred_url":"https://api.github.com/users/Validic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Validic/subscriptions","organizations_url":"https://api.github.com/users/Validic/orgs","repos_url":"https://api.github.com/users/Validic/repos","events_url":"https://api.github.com/users/Validic/events{/privacy}","received_events_url":"https://api.github.com/users/Validic/received_events","type":"Organization","site_admin":false},"repo":{"id":9361664,"name":"validic","full_name":"Validic/validic","owner":{"login":"Validic","id":4115118,"avatar_url":"https://avatars.githubusercontent.com/u/4115118?v=3","gravatar_id":"","url":"https://api.github.com/users/Validic","html_url":"https://github.com/Validic","followers_url":"https://api.github.com/users/Validic/followers","following_url":"https://api.github.com/users/Validic/following{/other_user}","gists_url":"https://api.github.com/users/Validic/gists{/gist_id}","starred_url":"https://api.github.com/users/Validic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Validic/subscriptions","organizations_url":"https://api.github.com/users/Validic/orgs","repos_url":"https://api.github.com/users/Validic/repos","events_url":"https://api.github.com/users/Validic/events{/privacy}","received_events_url":"https://api.github.com/users/Validic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Validic/validic","description":"API Wrapper for Validic","fork":false,"url":"https://api.github.com/repos/Validic/validic","forks_url":"https://api.github.com/repos/Validic/validic/forks","keys_url":"https://api.github.com/repos/Validic/validic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Validic/validic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Validic/validic/teams","hooks_url":"https://api.github.com/repos/Validic/validic/hooks","issue_events_url":"https://api.github.com/repos/Validic/validic/issues/events{/number}","events_url":"https://api.github.com/repos/Validic/validic/events","assignees_url":"https://api.github.com/repos/Validic/validic/assignees{/user}","branches_url":"https://api.github.com/repos/Validic/validic/branches{/branch}","tags_url":"https://api.github.com/repos/Validic/validic/tags","blobs_url":"https://api.github.com/repos/Validic/validic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Validic/validic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Validic/validic/git/refs{/sha}","trees_url":"https://api.github.com/repos/Validic/validic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Validic/validic/statuses/{sha}","languages_url":"https://api.github.com/repos/Validic/validic/languages","stargazers_url":"https://api.github.com/repos/Validic/validic/stargazers","contributors_url":"https://api.github.com/repos/Validic/validic/contributors","subscribers_url":"https://api.github.com/repos/Validic/validic/subscribers","subscription_url":"https://api.github.com/repos/Validic/validic/subscription","commits_url":"https://api.github.com/repos/Validic/validic/commits{/sha}","git_commits_url":"https://api.github.com/repos/Validic/validic/git/commits{/sha}","comments_url":"https://api.github.com/repos/Validic/validic/comments{/number}","issue_comment_url":"https://api.github.com/repos/Validic/validic/issues/comments{/number}","contents_url":"https://api.github.com/repos/Validic/validic/contents/{+path}","compare_url":"https://api.github.com/repos/Validic/validic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Validic/validic/merges","archive_url":"https://api.github.com/repos/Validic/validic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Validic/validic/downloads","issues_url":"https://api.github.com/repos/Validic/validic/issues{/number}","pulls_url":"https://api.github.com/repos/Validic/validic/pulls{/number}","milestones_url":"https://api.github.com/repos/Validic/validic/milestones{/number}","notifications_url":"https://api.github.com/repos/Validic/validic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Validic/validic/labels{/name}","releases_url":"https://api.github.com/repos/Validic/validic/releases{/id}","created_at":"2013-04-11T03:47:25Z","updated_at":"2015-11-05T05:17:10Z","pushed_at":"2016-01-20T11:46:11Z","git_url":"git://github.com/Validic/validic.git","ssh_url":"git@github.com:Validic/validic.git","clone_url":"https://github.com/Validic/validic.git","svn_url":"https://github.com/Validic/validic","homepage":"https://validic.com","size":597,"stargazers_count":16,"watchers_count":16,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":18,"mirror_url":null,"open_issues_count":2,"forks":18,"open_issues":2,"watchers":16,"default_branch":"master"}},"base":{"label":"Validic:master","ref":"master","sha":"a4917489e4ac282b5d3db3965db86c42ab25b0bd","user":{"login":"Validic","id":4115118,"avatar_url":"https://avatars.githubusercontent.com/u/4115118?v=3","gravatar_id":"","url":"https://api.github.com/users/Validic","html_url":"https://github.com/Validic","followers_url":"https://api.github.com/users/Validic/followers","following_url":"https://api.github.com/users/Validic/following{/other_user}","gists_url":"https://api.github.com/users/Validic/gists{/gist_id}","starred_url":"https://api.github.com/users/Validic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Validic/subscriptions","organizations_url":"https://api.github.com/users/Validic/orgs","repos_url":"https://api.github.com/users/Validic/repos","events_url":"https://api.github.com/users/Validic/events{/privacy}","received_events_url":"https://api.github.com/users/Validic/received_events","type":"Organization","site_admin":false},"repo":{"id":9361664,"name":"validic","full_name":"Validic/validic","owner":{"login":"Validic","id":4115118,"avatar_url":"https://avatars.githubusercontent.com/u/4115118?v=3","gravatar_id":"","url":"https://api.github.com/users/Validic","html_url":"https://github.com/Validic","followers_url":"https://api.github.com/users/Validic/followers","following_url":"https://api.github.com/users/Validic/following{/other_user}","gists_url":"https://api.github.com/users/Validic/gists{/gist_id}","starred_url":"https://api.github.com/users/Validic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Validic/subscriptions","organizations_url":"https://api.github.com/users/Validic/orgs","repos_url":"https://api.github.com/users/Validic/repos","events_url":"https://api.github.com/users/Validic/events{/privacy}","received_events_url":"https://api.github.com/users/Validic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Validic/validic","description":"API Wrapper for Validic","fork":false,"url":"https://api.github.com/repos/Validic/validic","forks_url":"https://api.github.com/repos/Validic/validic/forks","keys_url":"https://api.github.com/repos/Validic/validic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Validic/validic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Validic/validic/teams","hooks_url":"https://api.github.com/repos/Validic/validic/hooks","issue_events_url":"https://api.github.com/repos/Validic/validic/issues/events{/number}","events_url":"https://api.github.com/repos/Validic/validic/events","assignees_url":"https://api.github.com/repos/Validic/validic/assignees{/user}","branches_url":"https://api.github.com/repos/Validic/validic/branches{/branch}","tags_url":"https://api.github.com/repos/Validic/validic/tags","blobs_url":"https://api.github.com/repos/Validic/validic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Validic/validic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Validic/validic/git/refs{/sha}","trees_url":"https://api.github.com/repos/Validic/validic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Validic/validic/statuses/{sha}","languages_url":"https://api.github.com/repos/Validic/validic/languages","stargazers_url":"https://api.github.com/repos/Validic/validic/stargazers","contributors_url":"https://api.github.com/repos/Validic/validic/contributors","subscribers_url":"https://api.github.com/repos/Validic/validic/subscribers","subscription_url":"https://api.github.com/repos/Validic/validic/subscription","commits_url":"https://api.github.com/repos/Validic/validic/commits{/sha}","git_commits_url":"https://api.github.com/repos/Validic/validic/git/commits{/sha}","comments_url":"https://api.github.com/repos/Validic/validic/comments{/number}","issue_comment_url":"https://api.github.com/repos/Validic/validic/issues/comments{/number}","contents_url":"https://api.github.com/repos/Validic/validic/contents/{+path}","compare_url":"https://api.github.com/repos/Validic/validic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Validic/validic/merges","archive_url":"https://api.github.com/repos/Validic/validic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Validic/validic/downloads","issues_url":"https://api.github.com/repos/Validic/validic/issues{/number}","pulls_url":"https://api.github.com/repos/Validic/validic/pulls{/number}","milestones_url":"https://api.github.com/repos/Validic/validic/milestones{/number}","notifications_url":"https://api.github.com/repos/Validic/validic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Validic/validic/labels{/name}","releases_url":"https://api.github.com/repos/Validic/validic/releases{/id}","created_at":"2013-04-11T03:47:25Z","updated_at":"2015-11-05T05:17:10Z","pushed_at":"2016-01-20T11:46:11Z","git_url":"git://github.com/Validic/validic.git","ssh_url":"git@github.com:Validic/validic.git","clone_url":"https://github.com/Validic/validic.git","svn_url":"https://github.com/Validic/validic","homepage":"https://validic.com","size":597,"stargazers_count":16,"watchers_count":16,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":18,"mirror_url":null,"open_issues_count":2,"forks":18,"open_issues":2,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Validic/validic/pulls/32"},"html":{"href":"https://github.com/Validic/validic/pull/32"},"issue":{"href":"https://api.github.com/repos/Validic/validic/issues/32"},"comments":{"href":"https://api.github.com/repos/Validic/validic/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/Validic/validic/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/Validic/validic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Validic/validic/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/Validic/validic/statuses/aa81fc7da1db19787e9df920440bdc4bdb1cc990"}}}}