{"action":"created","comment":{"url":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/comments/36905512","id":36905512,"diff_hunk":"@@ -0,0 +1,24 @@\n+class ForgivenEvent < Event\n+  def record\n+    track_event \"Loan Forgiveness Added\", event_properties\n+  end\n+\n+  private\n+\n+  alias_method :forgiven, :resource\n+\n+  def event_properties\n+    {\n+    \tloans_forgiven: forgiven_loans.count,\n+  \t\trepayment_plan_id: repayment_plan.id\n+    }\n+  end\n+\n+  def forgiven_loans\n+  \tforgiven.loans\n+  end\n+\n+  def repayment_plan\n+  \tforgiven.repayment_plan","path":"app/models/events/forgiven_event.rb","position":22,"original_position":22,"commit_id":"c392f6006a7434d6158dc33f72ba6862a0b78a86","original_commit_id":"c392f6006a7434d6158dc33f72ba6862a0b78a86","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":"Use 2 (not 1) spaces for indentation.<br>Tab detected.","created_at":"2015-08-12T19:53:42Z","updated_at":"2015-08-12T19:53:42Z","html_url":"https://github.com/lukad03/student-loan-calculator/pull/18#discussion_r36905512","pull_request_url":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/comments/36905512"},"html":{"href":"https://github.com/lukad03/student-loan-calculator/pull/18#discussion_r36905512"},"pull_request":{"href":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/18","id":34976926,"html_url":"https://github.com/lukad03/student-loan-calculator/pull/18","diff_url":"https://github.com/lukad03/student-loan-calculator/pull/18.diff","patch_url":"https://github.com/lukad03/student-loan-calculator/pull/18.patch","issue_url":"https://api.github.com/repos/lukad03/student-loan-calculator/issues/18","number":18,"state":"open","locked":false,"title":"WIP Forgivens and ForgivenEvent","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":"**TODO**\r\n\r\n* [ ] Track Forgiven / Loan Count","created_at":"2015-05-08T02:57:05Z","updated_at":"2015-08-12T19:53:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5722b6f8462e12f4f5a74356e420c0afee93448d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/18/commits","review_comments_url":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/18/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/18/comments","statuses_url":"https://api.github.com/repos/lukad03/student-loan-calculator/statuses/c392f6006a7434d6158dc33f72ba6862a0b78a86","head":{"label":"lukad03:lk-forgivens","ref":"lk-forgivens","sha":"c392f6006a7434d6158dc33f72ba6862a0b78a86","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-05-05T12:02:43Z","pushed_at":"2015-08-12T19:53:35Z","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":4268,"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":"073f44aa471621976c04c958a3c0fef22ea8af4d","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-05-05T12:02:43Z","pushed_at":"2015-08-12T19:53:35Z","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":4268,"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/18"},"html":{"href":"https://github.com/lukad03/student-loan-calculator/pull/18"},"issue":{"href":"https://api.github.com/repos/lukad03/student-loan-calculator/issues/18"},"comments":{"href":"https://api.github.com/repos/lukad03/student-loan-calculator/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/lukad03/student-loan-calculator/pulls/18/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/18/commits"},"statuses":{"href":"https://api.github.com/repos/lukad03/student-loan-calculator/statuses/c392f6006a7434d6158dc33f72ba6862a0b78a86"}}}}