{"action":"created","comment":{"url":"https://api.github.com/repos/TechTakeover/DonutShop/pulls/comments/28333845","id":28333845,"diff_hunk":"@@ -0,0 +1,68 @@\n+'use strict';\n+(function() {\n+  var DonutShop = function (minCus, maxCus, average, store, open, close) {\n+    this.minCus = minCus;\n+    this.maxCus = maxCus;\n+    this.average = average;\n+    this.store = store;\n+    this.open = open || 700;\n+    this.close = close || 1800;\n+    this.hoursOpen = (this.close - this.open)/100;\n+    this.hourTotal = [];\n+  };\n+\n+  DonutShop.prototype.donutperhour = function () {\n+    console.log(\"donuthour\");\n+    var numbCustomer = Math.floor(Math.random() * this.maxCus - this.minCus) + this.minCus;\n+    return Math.round(numbCustomer * this.average);\n+  };\n+\n+  DonutShop.prototype.donutperday = function() {\n+  console.log(\"donuthour\")\n+  var total=0;\n+  for (var i=0; i < this.hoursOpen; i++) {\n+    var dPH = this.donutperhour();\n+    total += dPH;\n+    this.hourTotal.push(dPH);\n+\n+  };\n+  return total;\n+  }\n+\n+  DonutShop.prototype.render = function() {\n+    var row = document.createElement(\"tr\");\n+    var data = document.createElement(\"td\");\n+      data.textContent = this.store;\n+      row.appendChild(data);\n+    for (var i = 0; i < this.hourTotal.length ; i++) {\n+        data=document.createElement(\"td\");\n+      data.textContent = this.hourTotal[i];\n+      row.appendChild(data);\n+    };\n+    data = document.createElement('td');\n+    data.textContent = this.donutperday();\n+    row.appendChild(data);\n+\n+","path":"donut.js","position":46,"original_position":46,"commit_id":"c5300197fdb754c0eec556f89714fd10cd31ab43","original_commit_id":"c5300197fdb754c0eec556f89714fd10cd31ab43","user":{"login":"sjschmidt44","id":8696424,"avatar_url":"https://avatars.githubusercontent.com/u/8696424?v=3","gravatar_id":"","url":"https://api.github.com/users/sjschmidt44","html_url":"https://github.com/sjschmidt44","followers_url":"https://api.github.com/users/sjschmidt44/followers","following_url":"https://api.github.com/users/sjschmidt44/following{/other_user}","gists_url":"https://api.github.com/users/sjschmidt44/gists{/gist_id}","starred_url":"https://api.github.com/users/sjschmidt44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjschmidt44/subscriptions","organizations_url":"https://api.github.com/users/sjschmidt44/orgs","repos_url":"https://api.github.com/users/sjschmidt44/repos","events_url":"https://api.github.com/users/sjschmidt44/events{/privacy}","received_events_url":"https://api.github.com/users/sjschmidt44/received_events","type":"User","site_admin":false},"body":"A little too much whitespace separation between lines, but overall good formatting. ","created_at":"2015-04-14T14:53:16Z","updated_at":"2015-04-14T14:53:16Z","html_url":"https://github.com/TechTakeover/DonutShop/pull/1#discussion_r28333845","pull_request_url":"https://api.github.com/repos/TechTakeover/DonutShop/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/TechTakeover/DonutShop/pulls/comments/28333845"},"html":{"href":"https://github.com/TechTakeover/DonutShop/pull/1#discussion_r28333845"},"pull_request":{"href":"https://api.github.com/repos/TechTakeover/DonutShop/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/TechTakeover/DonutShop/pulls/1","id":32913067,"html_url":"https://github.com/TechTakeover/DonutShop/pull/1","diff_url":"https://github.com/TechTakeover/DonutShop/pull/1.diff","patch_url":"https://github.com/TechTakeover/DonutShop/pull/1.patch","issue_url":"https://api.github.com/repos/TechTakeover/DonutShop/issues/1","number":1,"state":"closed","locked":false,"title":"Domain Model","user":{"login":"TechTakeover","id":10777315,"avatar_url":"https://avatars.githubusercontent.com/u/10777315?v=3","gravatar_id":"","url":"https://api.github.com/users/TechTakeover","html_url":"https://github.com/TechTakeover","followers_url":"https://api.github.com/users/TechTakeover/followers","following_url":"https://api.github.com/users/TechTakeover/following{/other_user}","gists_url":"https://api.github.com/users/TechTakeover/gists{/gist_id}","starred_url":"https://api.github.com/users/TechTakeover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TechTakeover/subscriptions","organizations_url":"https://api.github.com/users/TechTakeover/orgs","repos_url":"https://api.github.com/users/TechTakeover/repos","events_url":"https://api.github.com/users/TechTakeover/events{/privacy}","received_events_url":"https://api.github.com/users/TechTakeover/received_events","type":"User","site_admin":false},"body":"I'm still working on the events, but I have the domain model completed.","created_at":"2015-04-08T23:39:37Z","updated_at":"2015-04-14T14:53:16Z","closed_at":"2015-04-08T23:39:55Z","merged_at":"2015-04-08T23:39:55Z","merge_commit_sha":"a402a859295a793385953966b68719fdfa12577b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TechTakeover/DonutShop/pulls/1/commits","review_comments_url":"https://api.github.com/repos/TechTakeover/DonutShop/pulls/1/comments","review_comment_url":"https://api.github.com/repos/TechTakeover/DonutShop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TechTakeover/DonutShop/issues/1/comments","statuses_url":"https://api.github.com/repos/TechTakeover/DonutShop/statuses/c5300197fdb754c0eec556f89714fd10cd31ab43","head":{"label":"TechTakeover:events","ref":"events","sha":"c5300197fdb754c0eec556f89714fd10cd31ab43","user":{"login":"TechTakeover","id":10777315,"avatar_url":"https://avatars.githubusercontent.com/u/10777315?v=3","gravatar_id":"","url":"https://api.github.com/users/TechTakeover","html_url":"https://github.com/TechTakeover","followers_url":"https://api.github.com/users/TechTakeover/followers","following_url":"https://api.github.com/users/TechTakeover/following{/other_user}","gists_url":"https://api.github.com/users/TechTakeover/gists{/gist_id}","starred_url":"https://api.github.com/users/TechTakeover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TechTakeover/subscriptions","organizations_url":"https://api.github.com/users/TechTakeover/orgs","repos_url":"https://api.github.com/users/TechTakeover/repos","events_url":"https://api.github.com/users/TechTakeover/events{/privacy}","received_events_url":"https://api.github.com/users/TechTakeover/received_events","type":"User","site_admin":false},"repo":{"id":33563768,"name":"DonutShop","full_name":"TechTakeover/DonutShop","owner":{"login":"TechTakeover","id":10777315,"avatar_url":"https://avatars.githubusercontent.com/u/10777315?v=3","gravatar_id":"","url":"https://api.github.com/users/TechTakeover","html_url":"https://github.com/TechTakeover","followers_url":"https://api.github.com/users/TechTakeover/followers","following_url":"https://api.github.com/users/TechTakeover/following{/other_user}","gists_url":"https://api.github.com/users/TechTakeover/gists{/gist_id}","starred_url":"https://api.github.com/users/TechTakeover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TechTakeover/subscriptions","organizations_url":"https://api.github.com/users/TechTakeover/orgs","repos_url":"https://api.github.com/users/TechTakeover/repos","events_url":"https://api.github.com/users/TechTakeover/events{/privacy}","received_events_url":"https://api.github.com/users/TechTakeover/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TechTakeover/DonutShop","description":"Donut Shop Domain Model","fork":false,"url":"https://api.github.com/repos/TechTakeover/DonutShop","forks_url":"https://api.github.com/repos/TechTakeover/DonutShop/forks","keys_url":"https://api.github.com/repos/TechTakeover/DonutShop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TechTakeover/DonutShop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TechTakeover/DonutShop/teams","hooks_url":"https://api.github.com/repos/TechTakeover/DonutShop/hooks","issue_events_url":"https://api.github.com/repos/TechTakeover/DonutShop/issues/events{/number}","events_url":"https://api.github.com/repos/TechTakeover/DonutShop/events","assignees_url":"https://api.github.com/repos/TechTakeover/DonutShop/assignees{/user}","branches_url":"https://api.github.com/repos/TechTakeover/DonutShop/branches{/branch}","tags_url":"https://api.github.com/repos/TechTakeover/DonutShop/tags","blobs_url":"https://api.github.com/repos/TechTakeover/DonutShop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TechTakeover/DonutShop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TechTakeover/DonutShop/git/refs{/sha}","trees_url":"https://api.github.com/repos/TechTakeover/DonutShop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TechTakeover/DonutShop/statuses/{sha}","languages_url":"https://api.github.com/repos/TechTakeover/DonutShop/languages","stargazers_url":"https://api.github.com/repos/TechTakeover/DonutShop/stargazers","contributors_url":"https://api.github.com/repos/TechTakeover/DonutShop/contributors","subscribers_url":"https://api.github.com/repos/TechTakeover/DonutShop/subscribers","subscription_url":"https://api.github.com/repos/TechTakeover/DonutShop/subscription","commits_url":"https://api.github.com/repos/TechTakeover/DonutShop/commits{/sha}","git_commits_url":"https://api.github.com/repos/TechTakeover/DonutShop/git/commits{/sha}","comments_url":"https://api.github.com/repos/TechTakeover/DonutShop/comments{/number}","issue_comment_url":"https://api.github.com/repos/TechTakeover/DonutShop/issues/comments{/number}","contents_url":"https://api.github.com/repos/TechTakeover/DonutShop/contents/{+path}","compare_url":"https://api.github.com/repos/TechTakeover/DonutShop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TechTakeover/DonutShop/merges","archive_url":"https://api.github.com/repos/TechTakeover/DonutShop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TechTakeover/DonutShop/downloads","issues_url":"https://api.github.com/repos/TechTakeover/DonutShop/issues{/number}","pulls_url":"https://api.github.com/repos/TechTakeover/DonutShop/pulls{/number}","milestones_url":"https://api.github.com/repos/TechTakeover/DonutShop/milestones{/number}","notifications_url":"https://api.github.com/repos/TechTakeover/DonutShop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TechTakeover/DonutShop/labels{/name}","releases_url":"https://api.github.com/repos/TechTakeover/DonutShop/releases{/id}","created_at":"2015-04-07T19:30:00Z","updated_at":"2015-04-10T18:39:56Z","pushed_at":"2015-04-10T18:39:55Z","git_url":"git://github.com/TechTakeover/DonutShop.git","ssh_url":"git@github.com:TechTakeover/DonutShop.git","clone_url":"https://github.com/TechTakeover/DonutShop.git","svn_url":"https://github.com/TechTakeover/DonutShop","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"TechTakeover:master","ref":"master","sha":"8ceab4f724266559ee7a68912f6f186b44137064","user":{"login":"TechTakeover","id":10777315,"avatar_url":"https://avatars.githubusercontent.com/u/10777315?v=3","gravatar_id":"","url":"https://api.github.com/users/TechTakeover","html_url":"https://github.com/TechTakeover","followers_url":"https://api.github.com/users/TechTakeover/followers","following_url":"https://api.github.com/users/TechTakeover/following{/other_user}","gists_url":"https://api.github.com/users/TechTakeover/gists{/gist_id}","starred_url":"https://api.github.com/users/TechTakeover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TechTakeover/subscriptions","organizations_url":"https://api.github.com/users/TechTakeover/orgs","repos_url":"https://api.github.com/users/TechTakeover/repos","events_url":"https://api.github.com/users/TechTakeover/events{/privacy}","received_events_url":"https://api.github.com/users/TechTakeover/received_events","type":"User","site_admin":false},"repo":{"id":33563768,"name":"DonutShop","full_name":"TechTakeover/DonutShop","owner":{"login":"TechTakeover","id":10777315,"avatar_url":"https://avatars.githubusercontent.com/u/10777315?v=3","gravatar_id":"","url":"https://api.github.com/users/TechTakeover","html_url":"https://github.com/TechTakeover","followers_url":"https://api.github.com/users/TechTakeover/followers","following_url":"https://api.github.com/users/TechTakeover/following{/other_user}","gists_url":"https://api.github.com/users/TechTakeover/gists{/gist_id}","starred_url":"https://api.github.com/users/TechTakeover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TechTakeover/subscriptions","organizations_url":"https://api.github.com/users/TechTakeover/orgs","repos_url":"https://api.github.com/users/TechTakeover/repos","events_url":"https://api.github.com/users/TechTakeover/events{/privacy}","received_events_url":"https://api.github.com/users/TechTakeover/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TechTakeover/DonutShop","description":"Donut Shop Domain Model","fork":false,"url":"https://api.github.com/repos/TechTakeover/DonutShop","forks_url":"https://api.github.com/repos/TechTakeover/DonutShop/forks","keys_url":"https://api.github.com/repos/TechTakeover/DonutShop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TechTakeover/DonutShop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TechTakeover/DonutShop/teams","hooks_url":"https://api.github.com/repos/TechTakeover/DonutShop/hooks","issue_events_url":"https://api.github.com/repos/TechTakeover/DonutShop/issues/events{/number}","events_url":"https://api.github.com/repos/TechTakeover/DonutShop/events","assignees_url":"https://api.github.com/repos/TechTakeover/DonutShop/assignees{/user}","branches_url":"https://api.github.com/repos/TechTakeover/DonutShop/branches{/branch}","tags_url":"https://api.github.com/repos/TechTakeover/DonutShop/tags","blobs_url":"https://api.github.com/repos/TechTakeover/DonutShop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TechTakeover/DonutShop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TechTakeover/DonutShop/git/refs{/sha}","trees_url":"https://api.github.com/repos/TechTakeover/DonutShop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TechTakeover/DonutShop/statuses/{sha}","languages_url":"https://api.github.com/repos/TechTakeover/DonutShop/languages","stargazers_url":"https://api.github.com/repos/TechTakeover/DonutShop/stargazers","contributors_url":"https://api.github.com/repos/TechTakeover/DonutShop/contributors","subscribers_url":"https://api.github.com/repos/TechTakeover/DonutShop/subscribers","subscription_url":"https://api.github.com/repos/TechTakeover/DonutShop/subscription","commits_url":"https://api.github.com/repos/TechTakeover/DonutShop/commits{/sha}","git_commits_url":"https://api.github.com/repos/TechTakeover/DonutShop/git/commits{/sha}","comments_url":"https://api.github.com/repos/TechTakeover/DonutShop/comments{/number}","issue_comment_url":"https://api.github.com/repos/TechTakeover/DonutShop/issues/comments{/number}","contents_url":"https://api.github.com/repos/TechTakeover/DonutShop/contents/{+path}","compare_url":"https://api.github.com/repos/TechTakeover/DonutShop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TechTakeover/DonutShop/merges","archive_url":"https://api.github.com/repos/TechTakeover/DonutShop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TechTakeover/DonutShop/downloads","issues_url":"https://api.github.com/repos/TechTakeover/DonutShop/issues{/number}","pulls_url":"https://api.github.com/repos/TechTakeover/DonutShop/pulls{/number}","milestones_url":"https://api.github.com/repos/TechTakeover/DonutShop/milestones{/number}","notifications_url":"https://api.github.com/repos/TechTakeover/DonutShop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TechTakeover/DonutShop/labels{/name}","releases_url":"https://api.github.com/repos/TechTakeover/DonutShop/releases{/id}","created_at":"2015-04-07T19:30:00Z","updated_at":"2015-04-10T18:39:56Z","pushed_at":"2015-04-10T18:39:55Z","git_url":"git://github.com/TechTakeover/DonutShop.git","ssh_url":"git@github.com:TechTakeover/DonutShop.git","clone_url":"https://github.com/TechTakeover/DonutShop.git","svn_url":"https://github.com/TechTakeover/DonutShop","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TechTakeover/DonutShop/pulls/1"},"html":{"href":"https://github.com/TechTakeover/DonutShop/pull/1"},"issue":{"href":"https://api.github.com/repos/TechTakeover/DonutShop/issues/1"},"comments":{"href":"https://api.github.com/repos/TechTakeover/DonutShop/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/TechTakeover/DonutShop/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/TechTakeover/DonutShop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TechTakeover/DonutShop/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/TechTakeover/DonutShop/statuses/c5300197fdb754c0eec556f89714fd10cd31ab43"}}}}