{"action":"created","comment":{"url":"https://api.github.com/repos/rocket-11/nastachku/pulls/comments/25228508","id":25228508,"diff_hunk":"@@ -0,0 +1,35 @@\n+class ProcessPaidOrder\n+  attr_reader :user, :order\n+\n+  def initialize(order)\n+    @order = order\n+  end\n+\n+  def call\n+    order.pay!\n+\n+    link_ticket_to_user\n+    link_afterparty_ticket_to_user\n+\n+    order\n+  end\n+\n+  def self.call(*args)\n+    new(*args).call\n+  end\n+\n+  private","path":"app/services/process_paid_order.rb","position":21,"original_position":21,"commit_id":"fb559be4641b876ee4e8bfe293246da0389e8c50","original_commit_id":"fb559be4641b876ee4e8bfe293246da0389e8c50","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":"Keep a blank line before and after `private`.","created_at":"2015-02-24T04:48:24Z","updated_at":"2015-02-24T04:48:24Z","html_url":"https://github.com/rocket-11/nastachku/pull/37#discussion_r25228508","pull_request_url":"https://api.github.com/repos/rocket-11/nastachku/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/rocket-11/nastachku/pulls/comments/25228508"},"html":{"href":"https://github.com/rocket-11/nastachku/pull/37#discussion_r25228508"},"pull_request":{"href":"https://api.github.com/repos/rocket-11/nastachku/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/rocket-11/nastachku/pulls/37","id":29870647,"html_url":"https://github.com/rocket-11/nastachku/pull/37","diff_url":"https://github.com/rocket-11/nastachku/pull/37.diff","patch_url":"https://github.com/rocket-11/nastachku/pull/37.patch","issue_url":"https://api.github.com/repos/rocket-11/nastachku/issues/37","number":37,"state":"open","locked":false,"title":"Новая система покупки билетов","user":{"login":"jbmeerkat","id":847534,"avatar_url":"https://avatars.githubusercontent.com/u/847534?v=3","gravatar_id":"","url":"https://api.github.com/users/jbmeerkat","html_url":"https://github.com/jbmeerkat","followers_url":"https://api.github.com/users/jbmeerkat/followers","following_url":"https://api.github.com/users/jbmeerkat/following{/other_user}","gists_url":"https://api.github.com/users/jbmeerkat/gists{/gist_id}","starred_url":"https://api.github.com/users/jbmeerkat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbmeerkat/subscriptions","organizations_url":"https://api.github.com/users/jbmeerkat/orgs","repos_url":"https://api.github.com/users/jbmeerkat/repos","events_url":"https://api.github.com/users/jbmeerkat/events{/privacy}","received_events_url":"https://api.github.com/users/jbmeerkat/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-24T04:42:58Z","updated_at":"2015-02-24T04:48:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c0ef23576938d5faeb1b159440fbd28c3665b2c4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rocket-11/nastachku/pulls/37/commits","review_comments_url":"https://api.github.com/repos/rocket-11/nastachku/pulls/37/comments","review_comment_url":"https://api.github.com/repos/rocket-11/nastachku/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rocket-11/nastachku/issues/37/comments","statuses_url":"https://api.github.com/repos/rocket-11/nastachku/statuses/fb559be4641b876ee4e8bfe293246da0389e8c50","head":{"label":"rocket-11:feature/new-tickets","ref":"feature/new-tickets","sha":"fb559be4641b876ee4e8bfe293246da0389e8c50","user":{"login":"rocket-11","id":10278372,"avatar_url":"https://avatars.githubusercontent.com/u/10278372?v=3","gravatar_id":"","url":"https://api.github.com/users/rocket-11","html_url":"https://github.com/rocket-11","followers_url":"https://api.github.com/users/rocket-11/followers","following_url":"https://api.github.com/users/rocket-11/following{/other_user}","gists_url":"https://api.github.com/users/rocket-11/gists{/gist_id}","starred_url":"https://api.github.com/users/rocket-11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rocket-11/subscriptions","organizations_url":"https://api.github.com/users/rocket-11/orgs","repos_url":"https://api.github.com/users/rocket-11/repos","events_url":"https://api.github.com/users/rocket-11/events{/privacy}","received_events_url":"https://api.github.com/users/rocket-11/received_events","type":"Organization","site_admin":false},"repo":{"id":28387261,"name":"nastachku","full_name":"rocket-11/nastachku","owner":{"login":"rocket-11","id":10278372,"avatar_url":"https://avatars.githubusercontent.com/u/10278372?v=3","gravatar_id":"","url":"https://api.github.com/users/rocket-11","html_url":"https://github.com/rocket-11","followers_url":"https://api.github.com/users/rocket-11/followers","following_url":"https://api.github.com/users/rocket-11/following{/other_user}","gists_url":"https://api.github.com/users/rocket-11/gists{/gist_id}","starred_url":"https://api.github.com/users/rocket-11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rocket-11/subscriptions","organizations_url":"https://api.github.com/users/rocket-11/orgs","repos_url":"https://api.github.com/users/rocket-11/repos","events_url":"https://api.github.com/users/rocket-11/events{/privacy}","received_events_url":"https://api.github.com/users/rocket-11/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rocket-11/nastachku","description":"","fork":true,"url":"https://api.github.com/repos/rocket-11/nastachku","forks_url":"https://api.github.com/repos/rocket-11/nastachku/forks","keys_url":"https://api.github.com/repos/rocket-11/nastachku/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rocket-11/nastachku/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rocket-11/nastachku/teams","hooks_url":"https://api.github.com/repos/rocket-11/nastachku/hooks","issue_events_url":"https://api.github.com/repos/rocket-11/nastachku/issues/events{/number}","events_url":"https://api.github.com/repos/rocket-11/nastachku/events","assignees_url":"https://api.github.com/repos/rocket-11/nastachku/assignees{/user}","branches_url":"https://api.github.com/repos/rocket-11/nastachku/branches{/branch}","tags_url":"https://api.github.com/repos/rocket-11/nastachku/tags","blobs_url":"https://api.github.com/repos/rocket-11/nastachku/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rocket-11/nastachku/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rocket-11/nastachku/git/refs{/sha}","trees_url":"https://api.github.com/repos/rocket-11/nastachku/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rocket-11/nastachku/statuses/{sha}","languages_url":"https://api.github.com/repos/rocket-11/nastachku/languages","stargazers_url":"https://api.github.com/repos/rocket-11/nastachku/stargazers","contributors_url":"https://api.github.com/repos/rocket-11/nastachku/contributors","subscribers_url":"https://api.github.com/repos/rocket-11/nastachku/subscribers","subscription_url":"https://api.github.com/repos/rocket-11/nastachku/subscription","commits_url":"https://api.github.com/repos/rocket-11/nastachku/commits{/sha}","git_commits_url":"https://api.github.com/repos/rocket-11/nastachku/git/commits{/sha}","comments_url":"https://api.github.com/repos/rocket-11/nastachku/comments{/number}","issue_comment_url":"https://api.github.com/repos/rocket-11/nastachku/issues/comments{/number}","contents_url":"https://api.github.com/repos/rocket-11/nastachku/contents/{+path}","compare_url":"https://api.github.com/repos/rocket-11/nastachku/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rocket-11/nastachku/merges","archive_url":"https://api.github.com/repos/rocket-11/nastachku/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rocket-11/nastachku/downloads","issues_url":"https://api.github.com/repos/rocket-11/nastachku/issues{/number}","pulls_url":"https://api.github.com/repos/rocket-11/nastachku/pulls{/number}","milestones_url":"https://api.github.com/repos/rocket-11/nastachku/milestones{/number}","notifications_url":"https://api.github.com/repos/rocket-11/nastachku/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rocket-11/nastachku/labels{/name}","releases_url":"https://api.github.com/repos/rocket-11/nastachku/releases{/id}","created_at":"2014-12-23T08:37:57Z","updated_at":"2015-02-22T07:27:06Z","pushed_at":"2015-02-24T04:48:19Z","git_url":"git://github.com/rocket-11/nastachku.git","ssh_url":"git@github.com:rocket-11/nastachku.git","clone_url":"https://github.com/rocket-11/nastachku.git","svn_url":"https://github.com/rocket-11/nastachku","homepage":"http://nastachku.ru","size":44025,"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":10,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"base":{"label":"rocket-11:feature/ticket-system","ref":"feature/ticket-system","sha":"3000e5dcf0aa7874fc8b66ed0ae7630f7aaa2a75","user":{"login":"rocket-11","id":10278372,"avatar_url":"https://avatars.githubusercontent.com/u/10278372?v=3","gravatar_id":"","url":"https://api.github.com/users/rocket-11","html_url":"https://github.com/rocket-11","followers_url":"https://api.github.com/users/rocket-11/followers","following_url":"https://api.github.com/users/rocket-11/following{/other_user}","gists_url":"https://api.github.com/users/rocket-11/gists{/gist_id}","starred_url":"https://api.github.com/users/rocket-11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rocket-11/subscriptions","organizations_url":"https://api.github.com/users/rocket-11/orgs","repos_url":"https://api.github.com/users/rocket-11/repos","events_url":"https://api.github.com/users/rocket-11/events{/privacy}","received_events_url":"https://api.github.com/users/rocket-11/received_events","type":"Organization","site_admin":false},"repo":{"id":28387261,"name":"nastachku","full_name":"rocket-11/nastachku","owner":{"login":"rocket-11","id":10278372,"avatar_url":"https://avatars.githubusercontent.com/u/10278372?v=3","gravatar_id":"","url":"https://api.github.com/users/rocket-11","html_url":"https://github.com/rocket-11","followers_url":"https://api.github.com/users/rocket-11/followers","following_url":"https://api.github.com/users/rocket-11/following{/other_user}","gists_url":"https://api.github.com/users/rocket-11/gists{/gist_id}","starred_url":"https://api.github.com/users/rocket-11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rocket-11/subscriptions","organizations_url":"https://api.github.com/users/rocket-11/orgs","repos_url":"https://api.github.com/users/rocket-11/repos","events_url":"https://api.github.com/users/rocket-11/events{/privacy}","received_events_url":"https://api.github.com/users/rocket-11/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rocket-11/nastachku","description":"","fork":true,"url":"https://api.github.com/repos/rocket-11/nastachku","forks_url":"https://api.github.com/repos/rocket-11/nastachku/forks","keys_url":"https://api.github.com/repos/rocket-11/nastachku/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rocket-11/nastachku/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rocket-11/nastachku/teams","hooks_url":"https://api.github.com/repos/rocket-11/nastachku/hooks","issue_events_url":"https://api.github.com/repos/rocket-11/nastachku/issues/events{/number}","events_url":"https://api.github.com/repos/rocket-11/nastachku/events","assignees_url":"https://api.github.com/repos/rocket-11/nastachku/assignees{/user}","branches_url":"https://api.github.com/repos/rocket-11/nastachku/branches{/branch}","tags_url":"https://api.github.com/repos/rocket-11/nastachku/tags","blobs_url":"https://api.github.com/repos/rocket-11/nastachku/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rocket-11/nastachku/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rocket-11/nastachku/git/refs{/sha}","trees_url":"https://api.github.com/repos/rocket-11/nastachku/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rocket-11/nastachku/statuses/{sha}","languages_url":"https://api.github.com/repos/rocket-11/nastachku/languages","stargazers_url":"https://api.github.com/repos/rocket-11/nastachku/stargazers","contributors_url":"https://api.github.com/repos/rocket-11/nastachku/contributors","subscribers_url":"https://api.github.com/repos/rocket-11/nastachku/subscribers","subscription_url":"https://api.github.com/repos/rocket-11/nastachku/subscription","commits_url":"https://api.github.com/repos/rocket-11/nastachku/commits{/sha}","git_commits_url":"https://api.github.com/repos/rocket-11/nastachku/git/commits{/sha}","comments_url":"https://api.github.com/repos/rocket-11/nastachku/comments{/number}","issue_comment_url":"https://api.github.com/repos/rocket-11/nastachku/issues/comments{/number}","contents_url":"https://api.github.com/repos/rocket-11/nastachku/contents/{+path}","compare_url":"https://api.github.com/repos/rocket-11/nastachku/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rocket-11/nastachku/merges","archive_url":"https://api.github.com/repos/rocket-11/nastachku/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rocket-11/nastachku/downloads","issues_url":"https://api.github.com/repos/rocket-11/nastachku/issues{/number}","pulls_url":"https://api.github.com/repos/rocket-11/nastachku/pulls{/number}","milestones_url":"https://api.github.com/repos/rocket-11/nastachku/milestones{/number}","notifications_url":"https://api.github.com/repos/rocket-11/nastachku/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rocket-11/nastachku/labels{/name}","releases_url":"https://api.github.com/repos/rocket-11/nastachku/releases{/id}","created_at":"2014-12-23T08:37:57Z","updated_at":"2015-02-22T07:27:06Z","pushed_at":"2015-02-24T04:48:19Z","git_url":"git://github.com/rocket-11/nastachku.git","ssh_url":"git@github.com:rocket-11/nastachku.git","clone_url":"https://github.com/rocket-11/nastachku.git","svn_url":"https://github.com/rocket-11/nastachku","homepage":"http://nastachku.ru","size":44025,"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":10,"forks":0,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rocket-11/nastachku/pulls/37"},"html":{"href":"https://github.com/rocket-11/nastachku/pull/37"},"issue":{"href":"https://api.github.com/repos/rocket-11/nastachku/issues/37"},"comments":{"href":"https://api.github.com/repos/rocket-11/nastachku/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/rocket-11/nastachku/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/rocket-11/nastachku/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rocket-11/nastachku/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/rocket-11/nastachku/statuses/fb559be4641b876ee4e8bfe293246da0389e8c50"}}}}