{"action":"created","comment":{"url":"https://api.github.com/repos/knoxjeffrey/myflix/pulls/comments/27295764","id":27295764,"diff_hunk":"@@ -0,0 +1,25 @@\n+class ProcessStripePayment\n+  attr_reader :controller, :amount, :email, :token\n+  \n+  def initialize(controller, amount, email, token)","path":"app/services/process_stripe_payment.rb","position":4,"original_position":4,"commit_id":"7d354ec27d7def929a8bbd40859ec239f9ae0ab8","original_commit_id":"7a64d5115002772d69b224f7e74cd0f73b1d9397","user":{"login":"knoxjeffrey","id":6476304,"avatar_url":"https://avatars.githubusercontent.com/u/6476304?v=3","gravatar_id":"","url":"https://api.github.com/users/knoxjeffrey","html_url":"https://github.com/knoxjeffrey","followers_url":"https://api.github.com/users/knoxjeffrey/followers","following_url":"https://api.github.com/users/knoxjeffrey/following{/other_user}","gists_url":"https://api.github.com/users/knoxjeffrey/gists{/gist_id}","starred_url":"https://api.github.com/users/knoxjeffrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knoxjeffrey/subscriptions","organizations_url":"https://api.github.com/users/knoxjeffrey/orgs","repos_url":"https://api.github.com/users/knoxjeffrey/repos","events_url":"https://api.github.com/users/knoxjeffrey/events{/privacy}","received_events_url":"https://api.github.com/users/knoxjeffrey/received_events","type":"User","site_admin":false},"body":"Yeah I wasn't massively happy about passing the controller but it was the only way I could get the flash message from the service object into the view.  I'm sure there's a better way, could you suggest any ideas?","created_at":"2015-03-27T13:53:11Z","updated_at":"2015-03-27T13:53:11Z","html_url":"https://github.com/knoxjeffrey/myflix/pull/22#discussion_r27295764","pull_request_url":"https://api.github.com/repos/knoxjeffrey/myflix/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/knoxjeffrey/myflix/pulls/comments/27295764"},"html":{"href":"https://github.com/knoxjeffrey/myflix/pull/22#discussion_r27295764"},"pull_request":{"href":"https://api.github.com/repos/knoxjeffrey/myflix/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/knoxjeffrey/myflix/pulls/22","id":32098514,"html_url":"https://github.com/knoxjeffrey/myflix/pull/22","diff_url":"https://github.com/knoxjeffrey/myflix/pull/22.diff","patch_url":"https://github.com/knoxjeffrey/myflix/pull/22.patch","issue_url":"https://api.github.com/repos/knoxjeffrey/myflix/issues/22","number":22,"state":"open","locked":false,"title":"Mod13","user":{"login":"knoxjeffrey","id":6476304,"avatar_url":"https://avatars.githubusercontent.com/u/6476304?v=3","gravatar_id":"","url":"https://api.github.com/users/knoxjeffrey","html_url":"https://github.com/knoxjeffrey","followers_url":"https://api.github.com/users/knoxjeffrey/followers","following_url":"https://api.github.com/users/knoxjeffrey/following{/other_user}","gists_url":"https://api.github.com/users/knoxjeffrey/gists{/gist_id}","starred_url":"https://api.github.com/users/knoxjeffrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knoxjeffrey/subscriptions","organizations_url":"https://api.github.com/users/knoxjeffrey/orgs","repos_url":"https://api.github.com/users/knoxjeffrey/repos","events_url":"https://api.github.com/users/knoxjeffrey/events{/privacy}","received_events_url":"https://api.github.com/users/knoxjeffrey/received_events","type":"User","site_admin":false},"body":"This my code for the end of week 6. I've done a bit more on top of what was in the lessons and would love to hear your feedback. Thanks!","created_at":"2015-03-27T11:05:48Z","updated_at":"2015-03-27T13:53:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"815ca16647fb05aaaea3df2970e0e609786244fd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/knoxjeffrey/myflix/pulls/22/commits","review_comments_url":"https://api.github.com/repos/knoxjeffrey/myflix/pulls/22/comments","review_comment_url":"https://api.github.com/repos/knoxjeffrey/myflix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/knoxjeffrey/myflix/issues/22/comments","statuses_url":"https://api.github.com/repos/knoxjeffrey/myflix/statuses/7d354ec27d7def929a8bbd40859ec239f9ae0ab8","head":{"label":"knoxjeffrey:mod13","ref":"mod13","sha":"7d354ec27d7def929a8bbd40859ec239f9ae0ab8","user":{"login":"knoxjeffrey","id":6476304,"avatar_url":"https://avatars.githubusercontent.com/u/6476304?v=3","gravatar_id":"","url":"https://api.github.com/users/knoxjeffrey","html_url":"https://github.com/knoxjeffrey","followers_url":"https://api.github.com/users/knoxjeffrey/followers","following_url":"https://api.github.com/users/knoxjeffrey/following{/other_user}","gists_url":"https://api.github.com/users/knoxjeffrey/gists{/gist_id}","starred_url":"https://api.github.com/users/knoxjeffrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knoxjeffrey/subscriptions","organizations_url":"https://api.github.com/users/knoxjeffrey/orgs","repos_url":"https://api.github.com/users/knoxjeffrey/repos","events_url":"https://api.github.com/users/knoxjeffrey/events{/privacy}","received_events_url":"https://api.github.com/users/knoxjeffrey/received_events","type":"User","site_admin":false},"repo":{"id":30430063,"name":"myflix","full_name":"knoxjeffrey/myflix","owner":{"login":"knoxjeffrey","id":6476304,"avatar_url":"https://avatars.githubusercontent.com/u/6476304?v=3","gravatar_id":"","url":"https://api.github.com/users/knoxjeffrey","html_url":"https://github.com/knoxjeffrey","followers_url":"https://api.github.com/users/knoxjeffrey/followers","following_url":"https://api.github.com/users/knoxjeffrey/following{/other_user}","gists_url":"https://api.github.com/users/knoxjeffrey/gists{/gist_id}","starred_url":"https://api.github.com/users/knoxjeffrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knoxjeffrey/subscriptions","organizations_url":"https://api.github.com/users/knoxjeffrey/orgs","repos_url":"https://api.github.com/users/knoxjeffrey/repos","events_url":"https://api.github.com/users/knoxjeffrey/events{/privacy}","received_events_url":"https://api.github.com/users/knoxjeffrey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/knoxjeffrey/myflix","description":"","fork":false,"url":"https://api.github.com/repos/knoxjeffrey/myflix","forks_url":"https://api.github.com/repos/knoxjeffrey/myflix/forks","keys_url":"https://api.github.com/repos/knoxjeffrey/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/knoxjeffrey/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/knoxjeffrey/myflix/teams","hooks_url":"https://api.github.com/repos/knoxjeffrey/myflix/hooks","issue_events_url":"https://api.github.com/repos/knoxjeffrey/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/knoxjeffrey/myflix/events","assignees_url":"https://api.github.com/repos/knoxjeffrey/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/knoxjeffrey/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/knoxjeffrey/myflix/tags","blobs_url":"https://api.github.com/repos/knoxjeffrey/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/knoxjeffrey/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/knoxjeffrey/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/knoxjeffrey/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/knoxjeffrey/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/knoxjeffrey/myflix/languages","stargazers_url":"https://api.github.com/repos/knoxjeffrey/myflix/stargazers","contributors_url":"https://api.github.com/repos/knoxjeffrey/myflix/contributors","subscribers_url":"https://api.github.com/repos/knoxjeffrey/myflix/subscribers","subscription_url":"https://api.github.com/repos/knoxjeffrey/myflix/subscription","commits_url":"https://api.github.com/repos/knoxjeffrey/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/knoxjeffrey/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/knoxjeffrey/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/knoxjeffrey/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/knoxjeffrey/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/knoxjeffrey/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/knoxjeffrey/myflix/merges","archive_url":"https://api.github.com/repos/knoxjeffrey/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/knoxjeffrey/myflix/downloads","issues_url":"https://api.github.com/repos/knoxjeffrey/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/knoxjeffrey/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/knoxjeffrey/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/knoxjeffrey/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/knoxjeffrey/myflix/labels{/name}","releases_url":"https://api.github.com/repos/knoxjeffrey/myflix/releases{/id}","created_at":"2015-02-06T19:49:45Z","updated_at":"2015-03-25T01:57:29Z","pushed_at":"2015-03-27T13:45:26Z","git_url":"git://github.com/knoxjeffrey/myflix.git","ssh_url":"git@github.com:knoxjeffrey/myflix.git","clone_url":"https://github.com/knoxjeffrey/myflix.git","svn_url":"https://github.com/knoxjeffrey/myflix","homepage":null,"size":768,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"knoxjeffrey:staging","ref":"staging","sha":"c133d08746ab9f8594ca180dfcd4a71d0636853e","user":{"login":"knoxjeffrey","id":6476304,"avatar_url":"https://avatars.githubusercontent.com/u/6476304?v=3","gravatar_id":"","url":"https://api.github.com/users/knoxjeffrey","html_url":"https://github.com/knoxjeffrey","followers_url":"https://api.github.com/users/knoxjeffrey/followers","following_url":"https://api.github.com/users/knoxjeffrey/following{/other_user}","gists_url":"https://api.github.com/users/knoxjeffrey/gists{/gist_id}","starred_url":"https://api.github.com/users/knoxjeffrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knoxjeffrey/subscriptions","organizations_url":"https://api.github.com/users/knoxjeffrey/orgs","repos_url":"https://api.github.com/users/knoxjeffrey/repos","events_url":"https://api.github.com/users/knoxjeffrey/events{/privacy}","received_events_url":"https://api.github.com/users/knoxjeffrey/received_events","type":"User","site_admin":false},"repo":{"id":30430063,"name":"myflix","full_name":"knoxjeffrey/myflix","owner":{"login":"knoxjeffrey","id":6476304,"avatar_url":"https://avatars.githubusercontent.com/u/6476304?v=3","gravatar_id":"","url":"https://api.github.com/users/knoxjeffrey","html_url":"https://github.com/knoxjeffrey","followers_url":"https://api.github.com/users/knoxjeffrey/followers","following_url":"https://api.github.com/users/knoxjeffrey/following{/other_user}","gists_url":"https://api.github.com/users/knoxjeffrey/gists{/gist_id}","starred_url":"https://api.github.com/users/knoxjeffrey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knoxjeffrey/subscriptions","organizations_url":"https://api.github.com/users/knoxjeffrey/orgs","repos_url":"https://api.github.com/users/knoxjeffrey/repos","events_url":"https://api.github.com/users/knoxjeffrey/events{/privacy}","received_events_url":"https://api.github.com/users/knoxjeffrey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/knoxjeffrey/myflix","description":"","fork":false,"url":"https://api.github.com/repos/knoxjeffrey/myflix","forks_url":"https://api.github.com/repos/knoxjeffrey/myflix/forks","keys_url":"https://api.github.com/repos/knoxjeffrey/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/knoxjeffrey/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/knoxjeffrey/myflix/teams","hooks_url":"https://api.github.com/repos/knoxjeffrey/myflix/hooks","issue_events_url":"https://api.github.com/repos/knoxjeffrey/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/knoxjeffrey/myflix/events","assignees_url":"https://api.github.com/repos/knoxjeffrey/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/knoxjeffrey/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/knoxjeffrey/myflix/tags","blobs_url":"https://api.github.com/repos/knoxjeffrey/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/knoxjeffrey/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/knoxjeffrey/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/knoxjeffrey/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/knoxjeffrey/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/knoxjeffrey/myflix/languages","stargazers_url":"https://api.github.com/repos/knoxjeffrey/myflix/stargazers","contributors_url":"https://api.github.com/repos/knoxjeffrey/myflix/contributors","subscribers_url":"https://api.github.com/repos/knoxjeffrey/myflix/subscribers","subscription_url":"https://api.github.com/repos/knoxjeffrey/myflix/subscription","commits_url":"https://api.github.com/repos/knoxjeffrey/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/knoxjeffrey/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/knoxjeffrey/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/knoxjeffrey/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/knoxjeffrey/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/knoxjeffrey/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/knoxjeffrey/myflix/merges","archive_url":"https://api.github.com/repos/knoxjeffrey/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/knoxjeffrey/myflix/downloads","issues_url":"https://api.github.com/repos/knoxjeffrey/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/knoxjeffrey/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/knoxjeffrey/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/knoxjeffrey/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/knoxjeffrey/myflix/labels{/name}","releases_url":"https://api.github.com/repos/knoxjeffrey/myflix/releases{/id}","created_at":"2015-02-06T19:49:45Z","updated_at":"2015-03-25T01:57:29Z","pushed_at":"2015-03-27T13:45:26Z","git_url":"git://github.com/knoxjeffrey/myflix.git","ssh_url":"git@github.com:knoxjeffrey/myflix.git","clone_url":"https://github.com/knoxjeffrey/myflix.git","svn_url":"https://github.com/knoxjeffrey/myflix","homepage":null,"size":768,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/knoxjeffrey/myflix/pulls/22"},"html":{"href":"https://github.com/knoxjeffrey/myflix/pull/22"},"issue":{"href":"https://api.github.com/repos/knoxjeffrey/myflix/issues/22"},"comments":{"href":"https://api.github.com/repos/knoxjeffrey/myflix/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/knoxjeffrey/myflix/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/knoxjeffrey/myflix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/knoxjeffrey/myflix/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/knoxjeffrey/myflix/statuses/7d354ec27d7def929a8bbd40859ec239f9ae0ab8"}}}}