{"action":"created","comment":{"url":"https://api.github.com/repos/HitFox/refactorlicious/pulls/comments/28948502","id":28948502,"diff_hunk":"@@ -0,0 +1,21 @@\n+def print_owing\n+  outstanding = 0.0\n+\n+  print_banner\n+\n+  # calculate outstanding\n+  @orders.each do |order|\n+    outstanding += order.amount\n+  end\n+\n+  # print details\n+  puts \"name: #{@name}\"\n+  puts \"amount: #{outstanding}\"\n+end\n+\n+def print_banner\n+  # print banner\n+  puts \"*************************\"\n+  puts \"***** Customer Owes *****\"\n+  puts \"*************************\"\n+end","path":"app/views/shared/code/_extract_method_6.html.erb","position":21,"original_position":21,"commit_id":"2ac5464278356398d9e9b33223e314397fd41ab8","original_commit_id":"2ac5464278356398d9e9b33223e314397fd41ab8","user":{"login":"DemitryT","id":498697,"avatar_url":"https://avatars.githubusercontent.com/u/498697?v=3","gravatar_id":"","url":"https://api.github.com/users/DemitryT","html_url":"https://github.com/DemitryT","followers_url":"https://api.github.com/users/DemitryT/followers","following_url":"https://api.github.com/users/DemitryT/following{/other_user}","gists_url":"https://api.github.com/users/DemitryT/gists{/gist_id}","starred_url":"https://api.github.com/users/DemitryT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DemitryT/subscriptions","organizations_url":"https://api.github.com/users/DemitryT/orgs","repos_url":"https://api.github.com/users/DemitryT/repos","events_url":"https://api.github.com/users/DemitryT/events{/privacy}","received_events_url":"https://api.github.com/users/DemitryT/received_events","type":"User","site_admin":false},"body":"If using sublime, add this to your user preferences: ` { \"ensure_newline_at_eof_on_save\": true }`\r\n \r\nIf using something else, configure accordingly.","created_at":"2015-04-23T09:27:01Z","updated_at":"2015-04-23T09:27:01Z","html_url":"https://github.com/HitFox/refactorlicious/pull/9#discussion_r28948502","pull_request_url":"https://api.github.com/repos/HitFox/refactorlicious/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/HitFox/refactorlicious/pulls/comments/28948502"},"html":{"href":"https://github.com/HitFox/refactorlicious/pull/9#discussion_r28948502"},"pull_request":{"href":"https://api.github.com/repos/HitFox/refactorlicious/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/HitFox/refactorlicious/pulls/9","id":33652162,"html_url":"https://github.com/HitFox/refactorlicious/pull/9","diff_url":"https://github.com/HitFox/refactorlicious/pull/9.diff","patch_url":"https://github.com/HitFox/refactorlicious/pull/9.patch","issue_url":"https://api.github.com/repos/HitFox/refactorlicious/issues/9","number":9,"state":"open","locked":false,"title":"Exercises as files","user":{"login":"JoanMartinezRipoll","id":9722292,"avatar_url":"https://avatars.githubusercontent.com/u/9722292?v=3","gravatar_id":"","url":"https://api.github.com/users/JoanMartinezRipoll","html_url":"https://github.com/JoanMartinezRipoll","followers_url":"https://api.github.com/users/JoanMartinezRipoll/followers","following_url":"https://api.github.com/users/JoanMartinezRipoll/following{/other_user}","gists_url":"https://api.github.com/users/JoanMartinezRipoll/gists{/gist_id}","starred_url":"https://api.github.com/users/JoanMartinezRipoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoanMartinezRipoll/subscriptions","organizations_url":"https://api.github.com/users/JoanMartinezRipoll/orgs","repos_url":"https://api.github.com/users/JoanMartinezRipoll/repos","events_url":"https://api.github.com/users/JoanMartinezRipoll/events{/privacy}","received_events_url":"https://api.github.com/users/JoanMartinezRipoll/received_events","type":"User","site_admin":false},"body":"The code to refactor of each exercise and its solution are both stored in .rb  files instead of the DB","created_at":"2015-04-20T10:19:24Z","updated_at":"2015-04-23T09:27:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac2606e124d9aa0feabb75ebd1d51e9f31233877","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HitFox/refactorlicious/pulls/9/commits","review_comments_url":"https://api.github.com/repos/HitFox/refactorlicious/pulls/9/comments","review_comment_url":"https://api.github.com/repos/HitFox/refactorlicious/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HitFox/refactorlicious/issues/9/comments","statuses_url":"https://api.github.com/repos/HitFox/refactorlicious/statuses/2ac5464278356398d9e9b33223e314397fd41ab8","head":{"label":"HitFox:exercises_as_views","ref":"exercises_as_views","sha":"2ac5464278356398d9e9b33223e314397fd41ab8","user":{"login":"HitFox","id":1249488,"avatar_url":"https://avatars.githubusercontent.com/u/1249488?v=3","gravatar_id":"","url":"https://api.github.com/users/HitFox","html_url":"https://github.com/HitFox","followers_url":"https://api.github.com/users/HitFox/followers","following_url":"https://api.github.com/users/HitFox/following{/other_user}","gists_url":"https://api.github.com/users/HitFox/gists{/gist_id}","starred_url":"https://api.github.com/users/HitFox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HitFox/subscriptions","organizations_url":"https://api.github.com/users/HitFox/orgs","repos_url":"https://api.github.com/users/HitFox/repos","events_url":"https://api.github.com/users/HitFox/events{/privacy}","received_events_url":"https://api.github.com/users/HitFox/received_events","type":"Organization","site_admin":false},"repo":{"id":33599738,"name":"refactorlicious","full_name":"HitFox/refactorlicious","owner":{"login":"HitFox","id":1249488,"avatar_url":"https://avatars.githubusercontent.com/u/1249488?v=3","gravatar_id":"","url":"https://api.github.com/users/HitFox","html_url":"https://github.com/HitFox","followers_url":"https://api.github.com/users/HitFox/followers","following_url":"https://api.github.com/users/HitFox/following{/other_user}","gists_url":"https://api.github.com/users/HitFox/gists{/gist_id}","starred_url":"https://api.github.com/users/HitFox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HitFox/subscriptions","organizations_url":"https://api.github.com/users/HitFox/orgs","repos_url":"https://api.github.com/users/HitFox/repos","events_url":"https://api.github.com/users/HitFox/events{/privacy}","received_events_url":"https://api.github.com/users/HitFox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HitFox/refactorlicious","description":"This application helps users practice common methods to refactor ruby code.","fork":false,"url":"https://api.github.com/repos/HitFox/refactorlicious","forks_url":"https://api.github.com/repos/HitFox/refactorlicious/forks","keys_url":"https://api.github.com/repos/HitFox/refactorlicious/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HitFox/refactorlicious/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HitFox/refactorlicious/teams","hooks_url":"https://api.github.com/repos/HitFox/refactorlicious/hooks","issue_events_url":"https://api.github.com/repos/HitFox/refactorlicious/issues/events{/number}","events_url":"https://api.github.com/repos/HitFox/refactorlicious/events","assignees_url":"https://api.github.com/repos/HitFox/refactorlicious/assignees{/user}","branches_url":"https://api.github.com/repos/HitFox/refactorlicious/branches{/branch}","tags_url":"https://api.github.com/repos/HitFox/refactorlicious/tags","blobs_url":"https://api.github.com/repos/HitFox/refactorlicious/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HitFox/refactorlicious/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HitFox/refactorlicious/git/refs{/sha}","trees_url":"https://api.github.com/repos/HitFox/refactorlicious/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HitFox/refactorlicious/statuses/{sha}","languages_url":"https://api.github.com/repos/HitFox/refactorlicious/languages","stargazers_url":"https://api.github.com/repos/HitFox/refactorlicious/stargazers","contributors_url":"https://api.github.com/repos/HitFox/refactorlicious/contributors","subscribers_url":"https://api.github.com/repos/HitFox/refactorlicious/subscribers","subscription_url":"https://api.github.com/repos/HitFox/refactorlicious/subscription","commits_url":"https://api.github.com/repos/HitFox/refactorlicious/commits{/sha}","git_commits_url":"https://api.github.com/repos/HitFox/refactorlicious/git/commits{/sha}","comments_url":"https://api.github.com/repos/HitFox/refactorlicious/comments{/number}","issue_comment_url":"https://api.github.com/repos/HitFox/refactorlicious/issues/comments{/number}","contents_url":"https://api.github.com/repos/HitFox/refactorlicious/contents/{+path}","compare_url":"https://api.github.com/repos/HitFox/refactorlicious/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HitFox/refactorlicious/merges","archive_url":"https://api.github.com/repos/HitFox/refactorlicious/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HitFox/refactorlicious/downloads","issues_url":"https://api.github.com/repos/HitFox/refactorlicious/issues{/number}","pulls_url":"https://api.github.com/repos/HitFox/refactorlicious/pulls{/number}","milestones_url":"https://api.github.com/repos/HitFox/refactorlicious/milestones{/number}","notifications_url":"https://api.github.com/repos/HitFox/refactorlicious/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HitFox/refactorlicious/labels{/name}","releases_url":"https://api.github.com/repos/HitFox/refactorlicious/releases{/id}","created_at":"2015-04-08T10:17:37Z","updated_at":"2015-04-22T20:33:41Z","pushed_at":"2015-04-22T20:33:40Z","git_url":"git://github.com/HitFox/refactorlicious.git","ssh_url":"git@github.com:HitFox/refactorlicious.git","clone_url":"https://github.com/HitFox/refactorlicious.git","svn_url":"https://github.com/HitFox/refactorlicious","homepage":"","size":492,"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":"HitFox:master","ref":"master","sha":"92f821e5a7ef24077129a2faf619cbf517103719","user":{"login":"HitFox","id":1249488,"avatar_url":"https://avatars.githubusercontent.com/u/1249488?v=3","gravatar_id":"","url":"https://api.github.com/users/HitFox","html_url":"https://github.com/HitFox","followers_url":"https://api.github.com/users/HitFox/followers","following_url":"https://api.github.com/users/HitFox/following{/other_user}","gists_url":"https://api.github.com/users/HitFox/gists{/gist_id}","starred_url":"https://api.github.com/users/HitFox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HitFox/subscriptions","organizations_url":"https://api.github.com/users/HitFox/orgs","repos_url":"https://api.github.com/users/HitFox/repos","events_url":"https://api.github.com/users/HitFox/events{/privacy}","received_events_url":"https://api.github.com/users/HitFox/received_events","type":"Organization","site_admin":false},"repo":{"id":33599738,"name":"refactorlicious","full_name":"HitFox/refactorlicious","owner":{"login":"HitFox","id":1249488,"avatar_url":"https://avatars.githubusercontent.com/u/1249488?v=3","gravatar_id":"","url":"https://api.github.com/users/HitFox","html_url":"https://github.com/HitFox","followers_url":"https://api.github.com/users/HitFox/followers","following_url":"https://api.github.com/users/HitFox/following{/other_user}","gists_url":"https://api.github.com/users/HitFox/gists{/gist_id}","starred_url":"https://api.github.com/users/HitFox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HitFox/subscriptions","organizations_url":"https://api.github.com/users/HitFox/orgs","repos_url":"https://api.github.com/users/HitFox/repos","events_url":"https://api.github.com/users/HitFox/events{/privacy}","received_events_url":"https://api.github.com/users/HitFox/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HitFox/refactorlicious","description":"This application helps users practice common methods to refactor ruby code.","fork":false,"url":"https://api.github.com/repos/HitFox/refactorlicious","forks_url":"https://api.github.com/repos/HitFox/refactorlicious/forks","keys_url":"https://api.github.com/repos/HitFox/refactorlicious/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HitFox/refactorlicious/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HitFox/refactorlicious/teams","hooks_url":"https://api.github.com/repos/HitFox/refactorlicious/hooks","issue_events_url":"https://api.github.com/repos/HitFox/refactorlicious/issues/events{/number}","events_url":"https://api.github.com/repos/HitFox/refactorlicious/events","assignees_url":"https://api.github.com/repos/HitFox/refactorlicious/assignees{/user}","branches_url":"https://api.github.com/repos/HitFox/refactorlicious/branches{/branch}","tags_url":"https://api.github.com/repos/HitFox/refactorlicious/tags","blobs_url":"https://api.github.com/repos/HitFox/refactorlicious/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HitFox/refactorlicious/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HitFox/refactorlicious/git/refs{/sha}","trees_url":"https://api.github.com/repos/HitFox/refactorlicious/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HitFox/refactorlicious/statuses/{sha}","languages_url":"https://api.github.com/repos/HitFox/refactorlicious/languages","stargazers_url":"https://api.github.com/repos/HitFox/refactorlicious/stargazers","contributors_url":"https://api.github.com/repos/HitFox/refactorlicious/contributors","subscribers_url":"https://api.github.com/repos/HitFox/refactorlicious/subscribers","subscription_url":"https://api.github.com/repos/HitFox/refactorlicious/subscription","commits_url":"https://api.github.com/repos/HitFox/refactorlicious/commits{/sha}","git_commits_url":"https://api.github.com/repos/HitFox/refactorlicious/git/commits{/sha}","comments_url":"https://api.github.com/repos/HitFox/refactorlicious/comments{/number}","issue_comment_url":"https://api.github.com/repos/HitFox/refactorlicious/issues/comments{/number}","contents_url":"https://api.github.com/repos/HitFox/refactorlicious/contents/{+path}","compare_url":"https://api.github.com/repos/HitFox/refactorlicious/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HitFox/refactorlicious/merges","archive_url":"https://api.github.com/repos/HitFox/refactorlicious/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HitFox/refactorlicious/downloads","issues_url":"https://api.github.com/repos/HitFox/refactorlicious/issues{/number}","pulls_url":"https://api.github.com/repos/HitFox/refactorlicious/pulls{/number}","milestones_url":"https://api.github.com/repos/HitFox/refactorlicious/milestones{/number}","notifications_url":"https://api.github.com/repos/HitFox/refactorlicious/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HitFox/refactorlicious/labels{/name}","releases_url":"https://api.github.com/repos/HitFox/refactorlicious/releases{/id}","created_at":"2015-04-08T10:17:37Z","updated_at":"2015-04-22T20:33:41Z","pushed_at":"2015-04-22T20:33:40Z","git_url":"git://github.com/HitFox/refactorlicious.git","ssh_url":"git@github.com:HitFox/refactorlicious.git","clone_url":"https://github.com/HitFox/refactorlicious.git","svn_url":"https://github.com/HitFox/refactorlicious","homepage":"","size":492,"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/HitFox/refactorlicious/pulls/9"},"html":{"href":"https://github.com/HitFox/refactorlicious/pull/9"},"issue":{"href":"https://api.github.com/repos/HitFox/refactorlicious/issues/9"},"comments":{"href":"https://api.github.com/repos/HitFox/refactorlicious/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/HitFox/refactorlicious/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/HitFox/refactorlicious/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HitFox/refactorlicious/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/HitFox/refactorlicious/statuses/2ac5464278356398d9e9b33223e314397fd41ab8"}}}}