{"action":"created","comment":{"url":"https://api.github.com/repos/pagseguro/ruby/pulls/comments/57925845","id":57925845,"diff_hunk":"@@ -0,0 +1,26 @@\n+module PagSeguro\n+  class SubscriptionChangeStatus\n+    class Response\n+\n+      attr_reader :response\n+      attr_reader :object\n+\n+      def initialize(response, object)\n+        @response = response\n+        @object = object\n+      end\n+\n+      def serialize\n+        unless success?\n+          object.errors.add response\n+        end\n+\n+        object\n+      end\n+\n+      def success?\n+        response.xml? && response.success?","path":"lib/pagseguro/subscription_change_status/response.rb","position":null,"original_position":22,"commit_id":"568aab2705e560cc4f8513dbe28fb75da5a5d978","original_commit_id":"a4fa9b0958caeb5f432442b248756e93908e632d","user":{"login":"rafaelrpbelo","id":2837358,"avatar_url":"https://avatars.githubusercontent.com/u/2837358?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelrpbelo","html_url":"https://github.com/rafaelrpbelo","followers_url":"https://api.github.com/users/rafaelrpbelo/followers","following_url":"https://api.github.com/users/rafaelrpbelo/following{/other_user}","gists_url":"https://api.github.com/users/rafaelrpbelo/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelrpbelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelrpbelo/subscriptions","organizations_url":"https://api.github.com/users/rafaelrpbelo/orgs","repos_url":"https://api.github.com/users/rafaelrpbelo/repos","events_url":"https://api.github.com/users/rafaelrpbelo/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelrpbelo/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2016-03-30T17:08:51Z","updated_at":"2016-03-30T17:08:51Z","html_url":"https://github.com/pagseguro/ruby/pull/208#discussion_r57925845","pull_request_url":"https://api.github.com/repos/pagseguro/ruby/pulls/208","_links":{"self":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/comments/57925845"},"html":{"href":"https://github.com/pagseguro/ruby/pull/208#discussion_r57925845"},"pull_request":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/208"}}},"pull_request":{"url":"https://api.github.com/repos/pagseguro/ruby/pulls/208","id":64507506,"html_url":"https://github.com/pagseguro/ruby/pull/208","diff_url":"https://github.com/pagseguro/ruby/pull/208.diff","patch_url":"https://github.com/pagseguro/ruby/pull/208.patch","issue_url":"https://api.github.com/repos/pagseguro/ruby/issues/208","number":208,"state":"open","locked":false,"title":"Change Subscription Status","user":{"login":"rafaelrpbelo","id":2837358,"avatar_url":"https://avatars.githubusercontent.com/u/2837358?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelrpbelo","html_url":"https://github.com/rafaelrpbelo","followers_url":"https://api.github.com/users/rafaelrpbelo/followers","following_url":"https://api.github.com/users/rafaelrpbelo/following{/other_user}","gists_url":"https://api.github.com/users/rafaelrpbelo/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelrpbelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelrpbelo/subscriptions","organizations_url":"https://api.github.com/users/rafaelrpbelo/orgs","repos_url":"https://api.github.com/users/rafaelrpbelo/repos","events_url":"https://api.github.com/users/rafaelrpbelo/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelrpbelo/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-29T18:02:24Z","updated_at":"2016-03-30T17:08:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d5f791f92da7d292a5eb3c9da6380ddea6155398","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pagseguro/ruby/pulls/208/commits","review_comments_url":"https://api.github.com/repos/pagseguro/ruby/pulls/208/comments","review_comment_url":"https://api.github.com/repos/pagseguro/ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pagseguro/ruby/issues/208/comments","statuses_url":"https://api.github.com/repos/pagseguro/ruby/statuses/568aab2705e560cc4f8513dbe28fb75da5a5d978","head":{"label":"pagseguro:change-subscription-status","ref":"change-subscription-status","sha":"568aab2705e560cc4f8513dbe28fb75da5a5d978","user":{"login":"pagseguro","id":123060,"avatar_url":"https://avatars.githubusercontent.com/u/123060?v=3","gravatar_id":"","url":"https://api.github.com/users/pagseguro","html_url":"https://github.com/pagseguro","followers_url":"https://api.github.com/users/pagseguro/followers","following_url":"https://api.github.com/users/pagseguro/following{/other_user}","gists_url":"https://api.github.com/users/pagseguro/gists{/gist_id}","starred_url":"https://api.github.com/users/pagseguro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagseguro/subscriptions","organizations_url":"https://api.github.com/users/pagseguro/orgs","repos_url":"https://api.github.com/users/pagseguro/repos","events_url":"https://api.github.com/users/pagseguro/events{/privacy}","received_events_url":"https://api.github.com/users/pagseguro/received_events","type":"Organization","site_admin":false},"repo":{"id":9632355,"name":"ruby","full_name":"pagseguro/ruby","owner":{"login":"pagseguro","id":123060,"avatar_url":"https://avatars.githubusercontent.com/u/123060?v=3","gravatar_id":"","url":"https://api.github.com/users/pagseguro","html_url":"https://github.com/pagseguro","followers_url":"https://api.github.com/users/pagseguro/followers","following_url":"https://api.github.com/users/pagseguro/following{/other_user}","gists_url":"https://api.github.com/users/pagseguro/gists{/gist_id}","starred_url":"https://api.github.com/users/pagseguro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagseguro/subscriptions","organizations_url":"https://api.github.com/users/pagseguro/orgs","repos_url":"https://api.github.com/users/pagseguro/repos","events_url":"https://api.github.com/users/pagseguro/events{/privacy}","received_events_url":"https://api.github.com/users/pagseguro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pagseguro/ruby","description":"Biblioteca de integração em Ruby","fork":false,"url":"https://api.github.com/repos/pagseguro/ruby","forks_url":"https://api.github.com/repos/pagseguro/ruby/forks","keys_url":"https://api.github.com/repos/pagseguro/ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pagseguro/ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pagseguro/ruby/teams","hooks_url":"https://api.github.com/repos/pagseguro/ruby/hooks","issue_events_url":"https://api.github.com/repos/pagseguro/ruby/issues/events{/number}","events_url":"https://api.github.com/repos/pagseguro/ruby/events","assignees_url":"https://api.github.com/repos/pagseguro/ruby/assignees{/user}","branches_url":"https://api.github.com/repos/pagseguro/ruby/branches{/branch}","tags_url":"https://api.github.com/repos/pagseguro/ruby/tags","blobs_url":"https://api.github.com/repos/pagseguro/ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pagseguro/ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pagseguro/ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/pagseguro/ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pagseguro/ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/pagseguro/ruby/languages","stargazers_url":"https://api.github.com/repos/pagseguro/ruby/stargazers","contributors_url":"https://api.github.com/repos/pagseguro/ruby/contributors","subscribers_url":"https://api.github.com/repos/pagseguro/ruby/subscribers","subscription_url":"https://api.github.com/repos/pagseguro/ruby/subscription","commits_url":"https://api.github.com/repos/pagseguro/ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/pagseguro/ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/pagseguro/ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/pagseguro/ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/pagseguro/ruby/contents/{+path}","compare_url":"https://api.github.com/repos/pagseguro/ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pagseguro/ruby/merges","archive_url":"https://api.github.com/repos/pagseguro/ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pagseguro/ruby/downloads","issues_url":"https://api.github.com/repos/pagseguro/ruby/issues{/number}","pulls_url":"https://api.github.com/repos/pagseguro/ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/pagseguro/ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/pagseguro/ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pagseguro/ruby/labels{/name}","releases_url":"https://api.github.com/repos/pagseguro/ruby/releases{/id}","deployments_url":"https://api.github.com/repos/pagseguro/ruby/deployments","created_at":"2013-04-23T20:14:45Z","updated_at":"2016-03-23T19:15:42Z","pushed_at":"2016-03-30T16:51:27Z","git_url":"git://github.com/pagseguro/ruby.git","ssh_url":"git@github.com:pagseguro/ruby.git","clone_url":"https://github.com/pagseguro/ruby.git","svn_url":"https://github.com/pagseguro/ruby","homepage":"","size":1212,"stargazers_count":74,"watchers_count":74,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":57,"mirror_url":null,"open_issues_count":4,"forks":57,"open_issues":4,"watchers":74,"default_branch":"master"}},"base":{"label":"pagseguro:dev","ref":"dev","sha":"d26651b39343f5e174da94245d71f443a81a1818","user":{"login":"pagseguro","id":123060,"avatar_url":"https://avatars.githubusercontent.com/u/123060?v=3","gravatar_id":"","url":"https://api.github.com/users/pagseguro","html_url":"https://github.com/pagseguro","followers_url":"https://api.github.com/users/pagseguro/followers","following_url":"https://api.github.com/users/pagseguro/following{/other_user}","gists_url":"https://api.github.com/users/pagseguro/gists{/gist_id}","starred_url":"https://api.github.com/users/pagseguro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagseguro/subscriptions","organizations_url":"https://api.github.com/users/pagseguro/orgs","repos_url":"https://api.github.com/users/pagseguro/repos","events_url":"https://api.github.com/users/pagseguro/events{/privacy}","received_events_url":"https://api.github.com/users/pagseguro/received_events","type":"Organization","site_admin":false},"repo":{"id":9632355,"name":"ruby","full_name":"pagseguro/ruby","owner":{"login":"pagseguro","id":123060,"avatar_url":"https://avatars.githubusercontent.com/u/123060?v=3","gravatar_id":"","url":"https://api.github.com/users/pagseguro","html_url":"https://github.com/pagseguro","followers_url":"https://api.github.com/users/pagseguro/followers","following_url":"https://api.github.com/users/pagseguro/following{/other_user}","gists_url":"https://api.github.com/users/pagseguro/gists{/gist_id}","starred_url":"https://api.github.com/users/pagseguro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagseguro/subscriptions","organizations_url":"https://api.github.com/users/pagseguro/orgs","repos_url":"https://api.github.com/users/pagseguro/repos","events_url":"https://api.github.com/users/pagseguro/events{/privacy}","received_events_url":"https://api.github.com/users/pagseguro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pagseguro/ruby","description":"Biblioteca de integração em Ruby","fork":false,"url":"https://api.github.com/repos/pagseguro/ruby","forks_url":"https://api.github.com/repos/pagseguro/ruby/forks","keys_url":"https://api.github.com/repos/pagseguro/ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pagseguro/ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pagseguro/ruby/teams","hooks_url":"https://api.github.com/repos/pagseguro/ruby/hooks","issue_events_url":"https://api.github.com/repos/pagseguro/ruby/issues/events{/number}","events_url":"https://api.github.com/repos/pagseguro/ruby/events","assignees_url":"https://api.github.com/repos/pagseguro/ruby/assignees{/user}","branches_url":"https://api.github.com/repos/pagseguro/ruby/branches{/branch}","tags_url":"https://api.github.com/repos/pagseguro/ruby/tags","blobs_url":"https://api.github.com/repos/pagseguro/ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pagseguro/ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pagseguro/ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/pagseguro/ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pagseguro/ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/pagseguro/ruby/languages","stargazers_url":"https://api.github.com/repos/pagseguro/ruby/stargazers","contributors_url":"https://api.github.com/repos/pagseguro/ruby/contributors","subscribers_url":"https://api.github.com/repos/pagseguro/ruby/subscribers","subscription_url":"https://api.github.com/repos/pagseguro/ruby/subscription","commits_url":"https://api.github.com/repos/pagseguro/ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/pagseguro/ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/pagseguro/ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/pagseguro/ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/pagseguro/ruby/contents/{+path}","compare_url":"https://api.github.com/repos/pagseguro/ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pagseguro/ruby/merges","archive_url":"https://api.github.com/repos/pagseguro/ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pagseguro/ruby/downloads","issues_url":"https://api.github.com/repos/pagseguro/ruby/issues{/number}","pulls_url":"https://api.github.com/repos/pagseguro/ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/pagseguro/ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/pagseguro/ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pagseguro/ruby/labels{/name}","releases_url":"https://api.github.com/repos/pagseguro/ruby/releases{/id}","deployments_url":"https://api.github.com/repos/pagseguro/ruby/deployments","created_at":"2013-04-23T20:14:45Z","updated_at":"2016-03-23T19:15:42Z","pushed_at":"2016-03-30T16:51:27Z","git_url":"git://github.com/pagseguro/ruby.git","ssh_url":"git@github.com:pagseguro/ruby.git","clone_url":"https://github.com/pagseguro/ruby.git","svn_url":"https://github.com/pagseguro/ruby","homepage":"","size":1212,"stargazers_count":74,"watchers_count":74,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":57,"mirror_url":null,"open_issues_count":4,"forks":57,"open_issues":4,"watchers":74,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/208"},"html":{"href":"https://github.com/pagseguro/ruby/pull/208"},"issue":{"href":"https://api.github.com/repos/pagseguro/ruby/issues/208"},"comments":{"href":"https://api.github.com/repos/pagseguro/ruby/issues/208/comments"},"review_comments":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/208/comments"},"review_comment":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pagseguro/ruby/pulls/208/commits"},"statuses":{"href":"https://api.github.com/repos/pagseguro/ruby/statuses/568aab2705e560cc4f8513dbe28fb75da5a5d978"}}}}