{"action":"created","comment":{"url":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/comments/29019792","id":29019792,"diff_hunk":"@@ -0,0 +1,192 @@\n+class RepaymentCalculator\n+  def initialize(repayment_plan)\n+    @repayment_plan = repayment_plan\n+  end\n+\n+  def calculate_loans","path":"app/models/repayment_calculator.rb","position":6,"original_position":6,"commit_id":"7229c57a367871dce46c971b6d7ba90fc3f89e7f","original_commit_id":"7229c57a367871dce46c971b6d7ba90fc3f89e7f","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":"Assignment Branch Condition size for calculate_loans is too high. [94.04/15]","created_at":"2015-04-24T02:18:42Z","updated_at":"2015-04-24T02:18:42Z","html_url":"https://github.com/lukad03/student-loan-calculator/pull/11#discussion_r29019792","pull_request_url":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/comments/29019792"},"html":{"href":"https://github.com/lukad03/student-loan-calculator/pull/11#discussion_r29019792"},"pull_request":{"href":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/11","id":33724286,"html_url":"https://github.com/lukad03/student-loan-calculator/pull/11","diff_url":"https://github.com/lukad03/student-loan-calculator/pull/11.diff","patch_url":"https://github.com/lukad03/student-loan-calculator/pull/11.patch","issue_url":"https://api.github.com/repos/lukad03/student-loan-calculator/issues/11","number":11,"state":"open","locked":false,"title":"Loan Forgiveness and New Calculator","user":{"login":"lukad03","id":2506817,"avatar_url":"https://avatars.githubusercontent.com/u/2506817?v=3","gravatar_id":"","url":"https://api.github.com/users/lukad03","html_url":"https://github.com/lukad03","followers_url":"https://api.github.com/users/lukad03/followers","following_url":"https://api.github.com/users/lukad03/following{/other_user}","gists_url":"https://api.github.com/users/lukad03/gists{/gist_id}","starred_url":"https://api.github.com/users/lukad03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukad03/subscriptions","organizations_url":"https://api.github.com/users/lukad03/orgs","repos_url":"https://api.github.com/users/lukad03/repos","events_url":"https://api.github.com/users/lukad03/events{/privacy}","received_events_url":"https://api.github.com/users/lukad03/received_events","type":"User","site_admin":false},"body":"Loans are now calculated using the `IncomeCalculator` and `LoanCalculator` classes. Originally, the `LoanEndDateCalculator` only calculated the end dates for each loan. The new classes return forgiveness and pay off statuses, remaining principal and interest at the end of the loan payments, and the number of months it took to payback loans/reach forgiveness/reach the end of the term.\r\n\r\nEach loan is returned in the `RepaymentPlan Show` view, and the status of the loan at the end of payment is returned as well. \r\n\r\nStill to be resolved is the fixed `qualifying_payments` for loans. Adding loan forgiveness is a work in progress (included in this branch).\r\n\r\nMajor Changes:\r\n* New Loan Calculators\r\n* New styles and loan calculations for the Repayment Plan Show View\r\n* Repayment Options can now be edited\r\n* Select loans and create Qualifying Repayments (WIP)\r\n* Fix Loan Interest column\r\n* Seed Forgiveness Types","created_at":"2015-04-21T02:32:35Z","updated_at":"2015-04-24T02:18:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ab92812ff1dd679e7954d1553c26f199eb46a6c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/11/commits","review_comments_url":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/11/comments","review_comment_url":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lukad03/student-loan-calculator/issues/11/comments","statuses_url":"https://api.github.com/repos/lukad03/student-loan-calculator/statuses/7229c57a367871dce46c971b6d7ba90fc3f89e7f","head":{"label":"lukad03:lk-loan-forgiveness","ref":"lk-loan-forgiveness","sha":"7229c57a367871dce46c971b6d7ba90fc3f89e7f","user":{"login":"lukad03","id":2506817,"avatar_url":"https://avatars.githubusercontent.com/u/2506817?v=3","gravatar_id":"","url":"https://api.github.com/users/lukad03","html_url":"https://github.com/lukad03","followers_url":"https://api.github.com/users/lukad03/followers","following_url":"https://api.github.com/users/lukad03/following{/other_user}","gists_url":"https://api.github.com/users/lukad03/gists{/gist_id}","starred_url":"https://api.github.com/users/lukad03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukad03/subscriptions","organizations_url":"https://api.github.com/users/lukad03/orgs","repos_url":"https://api.github.com/users/lukad03/repos","events_url":"https://api.github.com/users/lukad03/events{/privacy}","received_events_url":"https://api.github.com/users/lukad03/received_events","type":"User","site_admin":false},"repo":{"id":30134891,"name":"student-loan-calculator","full_name":"lukad03/student-loan-calculator","owner":{"login":"lukad03","id":2506817,"avatar_url":"https://avatars.githubusercontent.com/u/2506817?v=3","gravatar_id":"","url":"https://api.github.com/users/lukad03","html_url":"https://github.com/lukad03","followers_url":"https://api.github.com/users/lukad03/followers","following_url":"https://api.github.com/users/lukad03/following{/other_user}","gists_url":"https://api.github.com/users/lukad03/gists{/gist_id}","starred_url":"https://api.github.com/users/lukad03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukad03/subscriptions","organizations_url":"https://api.github.com/users/lukad03/orgs","repos_url":"https://api.github.com/users/lukad03/repos","events_url":"https://api.github.com/users/lukad03/events{/privacy}","received_events_url":"https://api.github.com/users/lukad03/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukad03/student-loan-calculator","description":"A Ruby on Rails app for calculating different payment options and scenarios for repaying student loans.","fork":false,"url":"https://api.github.com/repos/lukad03/student-loan-calculator","forks_url":"https://api.github.com/repos/lukad03/student-loan-calculator/forks","keys_url":"https://api.github.com/repos/lukad03/student-loan-calculator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukad03/student-loan-calculator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukad03/student-loan-calculator/teams","hooks_url":"https://api.github.com/repos/lukad03/student-loan-calculator/hooks","issue_events_url":"https://api.github.com/repos/lukad03/student-loan-calculator/issues/events{/number}","events_url":"https://api.github.com/repos/lukad03/student-loan-calculator/events","assignees_url":"https://api.github.com/repos/lukad03/student-loan-calculator/assignees{/user}","branches_url":"https://api.github.com/repos/lukad03/student-loan-calculator/branches{/branch}","tags_url":"https://api.github.com/repos/lukad03/student-loan-calculator/tags","blobs_url":"https://api.github.com/repos/lukad03/student-loan-calculator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukad03/student-loan-calculator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukad03/student-loan-calculator/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukad03/student-loan-calculator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukad03/student-loan-calculator/statuses/{sha}","languages_url":"https://api.github.com/repos/lukad03/student-loan-calculator/languages","stargazers_url":"https://api.github.com/repos/lukad03/student-loan-calculator/stargazers","contributors_url":"https://api.github.com/repos/lukad03/student-loan-calculator/contributors","subscribers_url":"https://api.github.com/repos/lukad03/student-loan-calculator/subscribers","subscription_url":"https://api.github.com/repos/lukad03/student-loan-calculator/subscription","commits_url":"https://api.github.com/repos/lukad03/student-loan-calculator/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukad03/student-loan-calculator/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukad03/student-loan-calculator/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukad03/student-loan-calculator/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukad03/student-loan-calculator/contents/{+path}","compare_url":"https://api.github.com/repos/lukad03/student-loan-calculator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukad03/student-loan-calculator/merges","archive_url":"https://api.github.com/repos/lukad03/student-loan-calculator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukad03/student-loan-calculator/downloads","issues_url":"https://api.github.com/repos/lukad03/student-loan-calculator/issues{/number}","pulls_url":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls{/number}","milestones_url":"https://api.github.com/repos/lukad03/student-loan-calculator/milestones{/number}","notifications_url":"https://api.github.com/repos/lukad03/student-loan-calculator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukad03/student-loan-calculator/labels{/name}","releases_url":"https://api.github.com/repos/lukad03/student-loan-calculator/releases{/id}","created_at":"2015-02-01T03:22:33Z","updated_at":"2015-04-01T02:53:40Z","pushed_at":"2015-04-24T02:18:31Z","git_url":"git://github.com/lukad03/student-loan-calculator.git","ssh_url":"git@github.com:lukad03/student-loan-calculator.git","clone_url":"https://github.com/lukad03/student-loan-calculator.git","svn_url":"https://github.com/lukad03/student-loan-calculator","homepage":null,"size":2388,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"lukad03:master","ref":"master","sha":"56d7e51ffd6c40d2a76335a4a9d7b81ae774e6c6","user":{"login":"lukad03","id":2506817,"avatar_url":"https://avatars.githubusercontent.com/u/2506817?v=3","gravatar_id":"","url":"https://api.github.com/users/lukad03","html_url":"https://github.com/lukad03","followers_url":"https://api.github.com/users/lukad03/followers","following_url":"https://api.github.com/users/lukad03/following{/other_user}","gists_url":"https://api.github.com/users/lukad03/gists{/gist_id}","starred_url":"https://api.github.com/users/lukad03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukad03/subscriptions","organizations_url":"https://api.github.com/users/lukad03/orgs","repos_url":"https://api.github.com/users/lukad03/repos","events_url":"https://api.github.com/users/lukad03/events{/privacy}","received_events_url":"https://api.github.com/users/lukad03/received_events","type":"User","site_admin":false},"repo":{"id":30134891,"name":"student-loan-calculator","full_name":"lukad03/student-loan-calculator","owner":{"login":"lukad03","id":2506817,"avatar_url":"https://avatars.githubusercontent.com/u/2506817?v=3","gravatar_id":"","url":"https://api.github.com/users/lukad03","html_url":"https://github.com/lukad03","followers_url":"https://api.github.com/users/lukad03/followers","following_url":"https://api.github.com/users/lukad03/following{/other_user}","gists_url":"https://api.github.com/users/lukad03/gists{/gist_id}","starred_url":"https://api.github.com/users/lukad03/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukad03/subscriptions","organizations_url":"https://api.github.com/users/lukad03/orgs","repos_url":"https://api.github.com/users/lukad03/repos","events_url":"https://api.github.com/users/lukad03/events{/privacy}","received_events_url":"https://api.github.com/users/lukad03/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukad03/student-loan-calculator","description":"A Ruby on Rails app for calculating different payment options and scenarios for repaying student loans.","fork":false,"url":"https://api.github.com/repos/lukad03/student-loan-calculator","forks_url":"https://api.github.com/repos/lukad03/student-loan-calculator/forks","keys_url":"https://api.github.com/repos/lukad03/student-loan-calculator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukad03/student-loan-calculator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukad03/student-loan-calculator/teams","hooks_url":"https://api.github.com/repos/lukad03/student-loan-calculator/hooks","issue_events_url":"https://api.github.com/repos/lukad03/student-loan-calculator/issues/events{/number}","events_url":"https://api.github.com/repos/lukad03/student-loan-calculator/events","assignees_url":"https://api.github.com/repos/lukad03/student-loan-calculator/assignees{/user}","branches_url":"https://api.github.com/repos/lukad03/student-loan-calculator/branches{/branch}","tags_url":"https://api.github.com/repos/lukad03/student-loan-calculator/tags","blobs_url":"https://api.github.com/repos/lukad03/student-loan-calculator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukad03/student-loan-calculator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukad03/student-loan-calculator/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukad03/student-loan-calculator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukad03/student-loan-calculator/statuses/{sha}","languages_url":"https://api.github.com/repos/lukad03/student-loan-calculator/languages","stargazers_url":"https://api.github.com/repos/lukad03/student-loan-calculator/stargazers","contributors_url":"https://api.github.com/repos/lukad03/student-loan-calculator/contributors","subscribers_url":"https://api.github.com/repos/lukad03/student-loan-calculator/subscribers","subscription_url":"https://api.github.com/repos/lukad03/student-loan-calculator/subscription","commits_url":"https://api.github.com/repos/lukad03/student-loan-calculator/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukad03/student-loan-calculator/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukad03/student-loan-calculator/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukad03/student-loan-calculator/issues/comments{/number}","contents_url":"https://api.github.com/repos/lukad03/student-loan-calculator/contents/{+path}","compare_url":"https://api.github.com/repos/lukad03/student-loan-calculator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukad03/student-loan-calculator/merges","archive_url":"https://api.github.com/repos/lukad03/student-loan-calculator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukad03/student-loan-calculator/downloads","issues_url":"https://api.github.com/repos/lukad03/student-loan-calculator/issues{/number}","pulls_url":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls{/number}","milestones_url":"https://api.github.com/repos/lukad03/student-loan-calculator/milestones{/number}","notifications_url":"https://api.github.com/repos/lukad03/student-loan-calculator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukad03/student-loan-calculator/labels{/name}","releases_url":"https://api.github.com/repos/lukad03/student-loan-calculator/releases{/id}","created_at":"2015-02-01T03:22:33Z","updated_at":"2015-04-01T02:53:40Z","pushed_at":"2015-04-24T02:18:31Z","git_url":"git://github.com/lukad03/student-loan-calculator.git","ssh_url":"git@github.com:lukad03/student-loan-calculator.git","clone_url":"https://github.com/lukad03/student-loan-calculator.git","svn_url":"https://github.com/lukad03/student-loan-calculator","homepage":null,"size":2388,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/11"},"html":{"href":"https://github.com/lukad03/student-loan-calculator/pull/11"},"issue":{"href":"https://api.github.com/repos/lukad03/student-loan-calculator/issues/11"},"comments":{"href":"https://api.github.com/repos/lukad03/student-loan-calculator/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/lukad03/student-loan-calculator/statuses/7229c57a367871dce46c971b6d7ba90fc3f89e7f"}}}}