{"action":"created","comment":{"url":"https://api.github.com/repos/advanced-js/oop/pulls/comments/30113419","id":30113419,"diff_hunk":"@@ -1 +1,40 @@\n // var SuperHero = ...\n+\n+var SuperHero = function(name, age) {\n+\tthis.name = name;\n+\tthis.age = age;\n+\tthis.energy = 100;\n+\treturn \"Superhero created!\";\n+};\n+\n+SuperHero.prototype.fly = function() {\n+\tthis.energy -= 1;\n+\treturn \"Yes, your superhero can fly!\";\n+};\n+\n+SuperHero.prototype.destroy = function() {\n+\treturn \"Yes, your superhero can destroy the enemy!\";\n+};\n+\n+SuperHero.prototype.attack = function() {\n+\treturn \"Attack the other superhero!\";\n+};\n+\n+var SubHero = function(name, age) {\n+\tSuperHero.call(this, name, age);\n+\tthis.punkNess = 10;\t\n+};\n+\n+SubHero.prototype = Object.create(SuperHero.prototype);\n+\n+SubHero.prototype.tookSteroids = function() {\n+\tthis.punkNess -=1;\n+}\n+\n+SubHero.prototype.claimingSelf = function() {\n+\treturn \"I'm a punk\";\n+}\n+\n+var superman = new SuperHero(\"Clark Kent\", 27);\n+var batman = new SuperHero(\"John Wayne\", 34);\n+var wannabeOne = new SubHero(\"Gunther\", 21);","path":"js/super_hero.js","position":40,"original_position":40,"commit_id":"4d1ed6e12b2c2dcb97376eeeedcc82211328048e","original_commit_id":"4d1ed6e12b2c2dcb97376eeeedcc82211328048e","user":{"login":"afeld","id":86842,"avatar_url":"https://avatars.githubusercontent.com/u/86842?v=3","gravatar_id":"","url":"https://api.github.com/users/afeld","html_url":"https://github.com/afeld","followers_url":"https://api.github.com/users/afeld/followers","following_url":"https://api.github.com/users/afeld/following{/other_user}","gists_url":"https://api.github.com/users/afeld/gists{/gist_id}","starred_url":"https://api.github.com/users/afeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afeld/subscriptions","organizations_url":"https://api.github.com/users/afeld/orgs","repos_url":"https://api.github.com/users/afeld/repos","events_url":"https://api.github.com/users/afeld/events{/privacy}","received_events_url":"https://api.github.com/users/afeld/received_events","type":"User","site_admin":false},"body":"What's the downside of having instances that are shared by all of the tests?","created_at":"2015-05-12T08:24:11Z","updated_at":"2015-05-12T08:24:11Z","html_url":"https://github.com/advanced-js/oop/pull/36#discussion_r30113419","pull_request_url":"https://api.github.com/repos/advanced-js/oop/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/advanced-js/oop/pulls/comments/30113419"},"html":{"href":"https://github.com/advanced-js/oop/pull/36#discussion_r30113419"},"pull_request":{"href":"https://api.github.com/repos/advanced-js/oop/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/advanced-js/oop/pulls/36","id":34500701,"html_url":"https://github.com/advanced-js/oop/pull/36","diff_url":"https://github.com/advanced-js/oop/pull/36.diff","patch_url":"https://github.com/advanced-js/oop/pull/36.patch","issue_url":"https://api.github.com/repos/advanced-js/oop/issues/36","number":36,"state":"open","locked":false,"title":"Adds 1st round of tests","user":{"login":"kobekoto","id":3111680,"avatar_url":"https://avatars.githubusercontent.com/u/3111680?v=3","gravatar_id":"","url":"https://api.github.com/users/kobekoto","html_url":"https://github.com/kobekoto","followers_url":"https://api.github.com/users/kobekoto/followers","following_url":"https://api.github.com/users/kobekoto/following{/other_user}","gists_url":"https://api.github.com/users/kobekoto/gists{/gist_id}","starred_url":"https://api.github.com/users/kobekoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kobekoto/subscriptions","organizations_url":"https://api.github.com/users/kobekoto/orgs","repos_url":"https://api.github.com/users/kobekoto/repos","events_url":"https://api.github.com/users/kobekoto/events{/privacy}","received_events_url":"https://api.github.com/users/kobekoto/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-30T21:02:05Z","updated_at":"2015-05-12T08:24:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"736e468a550a0b467204059a37cfaf0dc5b8285b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/advanced-js/oop/pulls/36/commits","review_comments_url":"https://api.github.com/repos/advanced-js/oop/pulls/36/comments","review_comment_url":"https://api.github.com/repos/advanced-js/oop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/advanced-js/oop/issues/36/comments","statuses_url":"https://api.github.com/repos/advanced-js/oop/statuses/4d1ed6e12b2c2dcb97376eeeedcc82211328048e","head":{"label":"kobekoto:gh-pages","ref":"gh-pages","sha":"4d1ed6e12b2c2dcb97376eeeedcc82211328048e","user":{"login":"kobekoto","id":3111680,"avatar_url":"https://avatars.githubusercontent.com/u/3111680?v=3","gravatar_id":"","url":"https://api.github.com/users/kobekoto","html_url":"https://github.com/kobekoto","followers_url":"https://api.github.com/users/kobekoto/followers","following_url":"https://api.github.com/users/kobekoto/following{/other_user}","gists_url":"https://api.github.com/users/kobekoto/gists{/gist_id}","starred_url":"https://api.github.com/users/kobekoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kobekoto/subscriptions","organizations_url":"https://api.github.com/users/kobekoto/orgs","repos_url":"https://api.github.com/users/kobekoto/repos","events_url":"https://api.github.com/users/kobekoto/events{/privacy}","received_events_url":"https://api.github.com/users/kobekoto/received_events","type":"User","site_admin":false},"repo":{"id":34873419,"name":"oop","full_name":"kobekoto/oop","owner":{"login":"kobekoto","id":3111680,"avatar_url":"https://avatars.githubusercontent.com/u/3111680?v=3","gravatar_id":"","url":"https://api.github.com/users/kobekoto","html_url":"https://github.com/kobekoto","followers_url":"https://api.github.com/users/kobekoto/followers","following_url":"https://api.github.com/users/kobekoto/following{/other_user}","gists_url":"https://api.github.com/users/kobekoto/gists{/gist_id}","starred_url":"https://api.github.com/users/kobekoto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kobekoto/subscriptions","organizations_url":"https://api.github.com/users/kobekoto/orgs","repos_url":"https://api.github.com/users/kobekoto/repos","events_url":"https://api.github.com/users/kobekoto/events{/privacy}","received_events_url":"https://api.github.com/users/kobekoto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kobekoto/oop","description":"Object Oriented Programming exercise","fork":true,"url":"https://api.github.com/repos/kobekoto/oop","forks_url":"https://api.github.com/repos/kobekoto/oop/forks","keys_url":"https://api.github.com/repos/kobekoto/oop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kobekoto/oop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kobekoto/oop/teams","hooks_url":"https://api.github.com/repos/kobekoto/oop/hooks","issue_events_url":"https://api.github.com/repos/kobekoto/oop/issues/events{/number}","events_url":"https://api.github.com/repos/kobekoto/oop/events","assignees_url":"https://api.github.com/repos/kobekoto/oop/assignees{/user}","branches_url":"https://api.github.com/repos/kobekoto/oop/branches{/branch}","tags_url":"https://api.github.com/repos/kobekoto/oop/tags","blobs_url":"https://api.github.com/repos/kobekoto/oop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kobekoto/oop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kobekoto/oop/git/refs{/sha}","trees_url":"https://api.github.com/repos/kobekoto/oop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kobekoto/oop/statuses/{sha}","languages_url":"https://api.github.com/repos/kobekoto/oop/languages","stargazers_url":"https://api.github.com/repos/kobekoto/oop/stargazers","contributors_url":"https://api.github.com/repos/kobekoto/oop/contributors","subscribers_url":"https://api.github.com/repos/kobekoto/oop/subscribers","subscription_url":"https://api.github.com/repos/kobekoto/oop/subscription","commits_url":"https://api.github.com/repos/kobekoto/oop/commits{/sha}","git_commits_url":"https://api.github.com/repos/kobekoto/oop/git/commits{/sha}","comments_url":"https://api.github.com/repos/kobekoto/oop/comments{/number}","issue_comment_url":"https://api.github.com/repos/kobekoto/oop/issues/comments{/number}","contents_url":"https://api.github.com/repos/kobekoto/oop/contents/{+path}","compare_url":"https://api.github.com/repos/kobekoto/oop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kobekoto/oop/merges","archive_url":"https://api.github.com/repos/kobekoto/oop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kobekoto/oop/downloads","issues_url":"https://api.github.com/repos/kobekoto/oop/issues{/number}","pulls_url":"https://api.github.com/repos/kobekoto/oop/pulls{/number}","milestones_url":"https://api.github.com/repos/kobekoto/oop/milestones{/number}","notifications_url":"https://api.github.com/repos/kobekoto/oop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kobekoto/oop/labels{/name}","releases_url":"https://api.github.com/repos/kobekoto/oop/releases{/id}","created_at":"2015-04-30T19:50:03Z","updated_at":"2015-05-07T22:30:15Z","pushed_at":"2015-05-07T22:30:14Z","git_url":"git://github.com/kobekoto/oop.git","ssh_url":"git@github.com:kobekoto/oop.git","clone_url":"https://github.com/kobekoto/oop.git","svn_url":"https://github.com/kobekoto/oop","homepage":null,"size":112,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"advanced-js:gh-pages","ref":"gh-pages","sha":"ef26512ec718f18fbccaea38939b1a314192ef91","user":{"login":"advanced-js","id":7143770,"avatar_url":"https://avatars.githubusercontent.com/u/7143770?v=3","gravatar_id":"","url":"https://api.github.com/users/advanced-js","html_url":"https://github.com/advanced-js","followers_url":"https://api.github.com/users/advanced-js/followers","following_url":"https://api.github.com/users/advanced-js/following{/other_user}","gists_url":"https://api.github.com/users/advanced-js/gists{/gist_id}","starred_url":"https://api.github.com/users/advanced-js/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advanced-js/subscriptions","organizations_url":"https://api.github.com/users/advanced-js/orgs","repos_url":"https://api.github.com/users/advanced-js/repos","events_url":"https://api.github.com/users/advanced-js/events{/privacy}","received_events_url":"https://api.github.com/users/advanced-js/received_events","type":"Organization","site_admin":false},"repo":{"id":18705385,"name":"oop","full_name":"advanced-js/oop","owner":{"login":"advanced-js","id":7143770,"avatar_url":"https://avatars.githubusercontent.com/u/7143770?v=3","gravatar_id":"","url":"https://api.github.com/users/advanced-js","html_url":"https://github.com/advanced-js","followers_url":"https://api.github.com/users/advanced-js/followers","following_url":"https://api.github.com/users/advanced-js/following{/other_user}","gists_url":"https://api.github.com/users/advanced-js/gists{/gist_id}","starred_url":"https://api.github.com/users/advanced-js/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/advanced-js/subscriptions","organizations_url":"https://api.github.com/users/advanced-js/orgs","repos_url":"https://api.github.com/users/advanced-js/repos","events_url":"https://api.github.com/users/advanced-js/events{/privacy}","received_events_url":"https://api.github.com/users/advanced-js/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/advanced-js/oop","description":"Object Oriented Programming exercise","fork":false,"url":"https://api.github.com/repos/advanced-js/oop","forks_url":"https://api.github.com/repos/advanced-js/oop/forks","keys_url":"https://api.github.com/repos/advanced-js/oop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/advanced-js/oop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/advanced-js/oop/teams","hooks_url":"https://api.github.com/repos/advanced-js/oop/hooks","issue_events_url":"https://api.github.com/repos/advanced-js/oop/issues/events{/number}","events_url":"https://api.github.com/repos/advanced-js/oop/events","assignees_url":"https://api.github.com/repos/advanced-js/oop/assignees{/user}","branches_url":"https://api.github.com/repos/advanced-js/oop/branches{/branch}","tags_url":"https://api.github.com/repos/advanced-js/oop/tags","blobs_url":"https://api.github.com/repos/advanced-js/oop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/advanced-js/oop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/advanced-js/oop/git/refs{/sha}","trees_url":"https://api.github.com/repos/advanced-js/oop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/advanced-js/oop/statuses/{sha}","languages_url":"https://api.github.com/repos/advanced-js/oop/languages","stargazers_url":"https://api.github.com/repos/advanced-js/oop/stargazers","contributors_url":"https://api.github.com/repos/advanced-js/oop/contributors","subscribers_url":"https://api.github.com/repos/advanced-js/oop/subscribers","subscription_url":"https://api.github.com/repos/advanced-js/oop/subscription","commits_url":"https://api.github.com/repos/advanced-js/oop/commits{/sha}","git_commits_url":"https://api.github.com/repos/advanced-js/oop/git/commits{/sha}","comments_url":"https://api.github.com/repos/advanced-js/oop/comments{/number}","issue_comment_url":"https://api.github.com/repos/advanced-js/oop/issues/comments{/number}","contents_url":"https://api.github.com/repos/advanced-js/oop/contents/{+path}","compare_url":"https://api.github.com/repos/advanced-js/oop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/advanced-js/oop/merges","archive_url":"https://api.github.com/repos/advanced-js/oop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/advanced-js/oop/downloads","issues_url":"https://api.github.com/repos/advanced-js/oop/issues{/number}","pulls_url":"https://api.github.com/repos/advanced-js/oop/pulls{/number}","milestones_url":"https://api.github.com/repos/advanced-js/oop/milestones{/number}","notifications_url":"https://api.github.com/repos/advanced-js/oop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/advanced-js/oop/labels{/name}","releases_url":"https://api.github.com/repos/advanced-js/oop/releases{/id}","created_at":"2014-04-12T14:03:50Z","updated_at":"2014-12-27T04:02:53Z","pushed_at":"2015-05-07T22:30:15Z","git_url":"git://github.com/advanced-js/oop.git","ssh_url":"git@github.com:advanced-js/oop.git","clone_url":"https://github.com/advanced-js/oop.git","svn_url":"https://github.com/advanced-js/oop","homepage":null,"size":484,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":40,"mirror_url":null,"open_issues_count":4,"forks":40,"open_issues":4,"watchers":2,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/advanced-js/oop/pulls/36"},"html":{"href":"https://github.com/advanced-js/oop/pull/36"},"issue":{"href":"https://api.github.com/repos/advanced-js/oop/issues/36"},"comments":{"href":"https://api.github.com/repos/advanced-js/oop/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/advanced-js/oop/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/advanced-js/oop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/advanced-js/oop/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/advanced-js/oop/statuses/4d1ed6e12b2c2dcb97376eeeedcc82211328048e"}}}}