{"action":"created","comment":{"url":"https://api.github.com/repos/carlesjove/collection_json_serializer/pulls/comments/22762908","id":22762908,"diff_hunk":"@@ -0,0 +1,39 @@\n+module CollectionJson\n+  class Serializer\n+    class Items\n+      attr_accessor :href\n+      attr_accessor :attributes\n+      attr_accessor :links\n+\n+      def href(*args)\n+        url = if args.first.is_a?(Array)\n+                args.first.first\n+              else\n+                args.first\n+              end\n+        @href ||= url\n+      end\n+\n+      def attributes(*args)\n+        @attributes ||= args\n+      end\n+\n+      def links(*args)\n+        @links ||= args\n+      end\n+\n+      def href?\n+        @href.present?\n+      end\n+\n+      def attributes?\n+        @attributes.present?\n+      end\n+\n+      def links?\n+        @links.present?\n+      end\n+    end\n+  end\n+end\n+","path":"lib/collection_json_serializer/items.rb","position":39,"original_position":39,"commit_id":"3ef1367a3b5a2e4658188d091538b052e85a4478","original_commit_id":"3ef1367a3b5a2e4658188d091538b052e85a4478","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"1 trailing blank lines detected.","created_at":"2015-01-10T23:40:26Z","updated_at":"2015-01-10T23:40:26Z","html_url":"https://github.com/carlesjove/collection_json_serializer/pull/31#discussion_r22762908","pull_request_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/pulls/31","_links":{"self":{"href":"https://api.github.com/repos/carlesjove/collection_json_serializer/pulls/comments/22762908"},"html":{"href":"https://github.com/carlesjove/collection_json_serializer/pull/31#discussion_r22762908"},"pull_request":{"href":"https://api.github.com/repos/carlesjove/collection_json_serializer/pulls/31"}}},"pull_request":{"url":"https://api.github.com/repos/carlesjove/collection_json_serializer/pulls/31","id":27156378,"html_url":"https://github.com/carlesjove/collection_json_serializer/pull/31","diff_url":"https://github.com/carlesjove/collection_json_serializer/pull/31.diff","patch_url":"https://github.com/carlesjove/collection_json_serializer/pull/31.patch","issue_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/issues/31","number":31,"state":"open","locked":false,"title":"version 0.3.0","user":{"login":"carlesjove","id":1800981,"avatar_url":"https://avatars.githubusercontent.com/u/1800981?v=3","gravatar_id":"","url":"https://api.github.com/users/carlesjove","html_url":"https://github.com/carlesjove","followers_url":"https://api.github.com/users/carlesjove/followers","following_url":"https://api.github.com/users/carlesjove/following{/other_user}","gists_url":"https://api.github.com/users/carlesjove/gists{/gist_id}","starred_url":"https://api.github.com/users/carlesjove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlesjove/subscriptions","organizations_url":"https://api.github.com/users/carlesjove/orgs","repos_url":"https://api.github.com/users/carlesjove/repos","events_url":"https://api.github.com/users/carlesjove/events{/privacy}","received_events_url":"https://api.github.com/users/carlesjove/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-10T23:40:21Z","updated_at":"2015-01-10T23:40:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3a9146abd1bfcf75cc0ce94f4573cc8f2544168b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/pulls/31/commits","review_comments_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/pulls/31/comments","review_comment_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/pulls/comments/{number}","comments_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/issues/31/comments","statuses_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/statuses/3ef1367a3b5a2e4658188d091538b052e85a4478","head":{"label":"carlesjove:dev","ref":"dev","sha":"3ef1367a3b5a2e4658188d091538b052e85a4478","user":{"login":"carlesjove","id":1800981,"avatar_url":"https://avatars.githubusercontent.com/u/1800981?v=3","gravatar_id":"","url":"https://api.github.com/users/carlesjove","html_url":"https://github.com/carlesjove","followers_url":"https://api.github.com/users/carlesjove/followers","following_url":"https://api.github.com/users/carlesjove/following{/other_user}","gists_url":"https://api.github.com/users/carlesjove/gists{/gist_id}","starred_url":"https://api.github.com/users/carlesjove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlesjove/subscriptions","organizations_url":"https://api.github.com/users/carlesjove/orgs","repos_url":"https://api.github.com/users/carlesjove/repos","events_url":"https://api.github.com/users/carlesjove/events{/privacy}","received_events_url":"https://api.github.com/users/carlesjove/received_events","type":"User","site_admin":false},"repo":{"id":25838775,"name":"collection_json_serializer","full_name":"carlesjove/collection_json_serializer","owner":{"login":"carlesjove","id":1800981,"avatar_url":"https://avatars.githubusercontent.com/u/1800981?v=3","gravatar_id":"","url":"https://api.github.com/users/carlesjove","html_url":"https://github.com/carlesjove","followers_url":"https://api.github.com/users/carlesjove/followers","following_url":"https://api.github.com/users/carlesjove/following{/other_user}","gists_url":"https://api.github.com/users/carlesjove/gists{/gist_id}","starred_url":"https://api.github.com/users/carlesjove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlesjove/subscriptions","organizations_url":"https://api.github.com/users/carlesjove/orgs","repos_url":"https://api.github.com/users/carlesjove/repos","events_url":"https://api.github.com/users/carlesjove/events{/privacy}","received_events_url":"https://api.github.com/users/carlesjove/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carlesjove/collection_json_serializer","description":"A Rails gem to respond with Collection+JSON","fork":false,"url":"https://api.github.com/repos/carlesjove/collection_json_serializer","forks_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/forks","keys_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/teams","hooks_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/hooks","issue_events_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/issues/events{/number}","events_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/events","assignees_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/assignees{/user}","branches_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/branches{/branch}","tags_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/tags","blobs_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/git/refs{/sha}","trees_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/statuses/{sha}","languages_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/languages","stargazers_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/stargazers","contributors_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/contributors","subscribers_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/subscribers","subscription_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/subscription","commits_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/commits{/sha}","git_commits_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/git/commits{/sha}","comments_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/comments{/number}","issue_comment_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/issues/comments/{number}","contents_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/contents/{+path}","compare_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/merges","archive_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/downloads","issues_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/issues{/number}","pulls_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/pulls{/number}","milestones_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/milestones{/number}","notifications_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/labels{/name}","releases_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/releases{/id}","created_at":"2014-10-27T20:55:58Z","updated_at":"2014-12-19T09:59:39Z","pushed_at":"2015-01-10T23:39:07Z","git_url":"git://github.com/carlesjove/collection_json_serializer.git","ssh_url":"git@github.com:carlesjove/collection_json_serializer.git","clone_url":"https://github.com/carlesjove/collection_json_serializer.git","svn_url":"https://github.com/carlesjove/collection_json_serializer","homepage":null,"size":662,"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":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"carlesjove:master","ref":"master","sha":"ce278f71c3328592b25522e4671216eca0962cc7","user":{"login":"carlesjove","id":1800981,"avatar_url":"https://avatars.githubusercontent.com/u/1800981?v=3","gravatar_id":"","url":"https://api.github.com/users/carlesjove","html_url":"https://github.com/carlesjove","followers_url":"https://api.github.com/users/carlesjove/followers","following_url":"https://api.github.com/users/carlesjove/following{/other_user}","gists_url":"https://api.github.com/users/carlesjove/gists{/gist_id}","starred_url":"https://api.github.com/users/carlesjove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlesjove/subscriptions","organizations_url":"https://api.github.com/users/carlesjove/orgs","repos_url":"https://api.github.com/users/carlesjove/repos","events_url":"https://api.github.com/users/carlesjove/events{/privacy}","received_events_url":"https://api.github.com/users/carlesjove/received_events","type":"User","site_admin":false},"repo":{"id":25838775,"name":"collection_json_serializer","full_name":"carlesjove/collection_json_serializer","owner":{"login":"carlesjove","id":1800981,"avatar_url":"https://avatars.githubusercontent.com/u/1800981?v=3","gravatar_id":"","url":"https://api.github.com/users/carlesjove","html_url":"https://github.com/carlesjove","followers_url":"https://api.github.com/users/carlesjove/followers","following_url":"https://api.github.com/users/carlesjove/following{/other_user}","gists_url":"https://api.github.com/users/carlesjove/gists{/gist_id}","starred_url":"https://api.github.com/users/carlesjove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlesjove/subscriptions","organizations_url":"https://api.github.com/users/carlesjove/orgs","repos_url":"https://api.github.com/users/carlesjove/repos","events_url":"https://api.github.com/users/carlesjove/events{/privacy}","received_events_url":"https://api.github.com/users/carlesjove/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carlesjove/collection_json_serializer","description":"A Rails gem to respond with Collection+JSON","fork":false,"url":"https://api.github.com/repos/carlesjove/collection_json_serializer","forks_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/forks","keys_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/teams","hooks_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/hooks","issue_events_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/issues/events{/number}","events_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/events","assignees_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/assignees{/user}","branches_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/branches{/branch}","tags_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/tags","blobs_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/git/refs{/sha}","trees_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/statuses/{sha}","languages_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/languages","stargazers_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/stargazers","contributors_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/contributors","subscribers_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/subscribers","subscription_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/subscription","commits_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/commits{/sha}","git_commits_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/git/commits{/sha}","comments_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/comments{/number}","issue_comment_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/issues/comments/{number}","contents_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/contents/{+path}","compare_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/merges","archive_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/downloads","issues_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/issues{/number}","pulls_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/pulls{/number}","milestones_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/milestones{/number}","notifications_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/labels{/name}","releases_url":"https://api.github.com/repos/carlesjove/collection_json_serializer/releases{/id}","created_at":"2014-10-27T20:55:58Z","updated_at":"2014-12-19T09:59:39Z","pushed_at":"2015-01-10T23:39:07Z","git_url":"git://github.com/carlesjove/collection_json_serializer.git","ssh_url":"git@github.com:carlesjove/collection_json_serializer.git","clone_url":"https://github.com/carlesjove/collection_json_serializer.git","svn_url":"https://github.com/carlesjove/collection_json_serializer","homepage":null,"size":662,"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":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/carlesjove/collection_json_serializer/pulls/31"},"html":{"href":"https://github.com/carlesjove/collection_json_serializer/pull/31"},"issue":{"href":"https://api.github.com/repos/carlesjove/collection_json_serializer/issues/31"},"comments":{"href":"https://api.github.com/repos/carlesjove/collection_json_serializer/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/carlesjove/collection_json_serializer/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/carlesjove/collection_json_serializer/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/carlesjove/collection_json_serializer/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/carlesjove/collection_json_serializer/statuses/3ef1367a3b5a2e4658188d091538b052e85a4478"}}}}