{"action":"created","comment":{"url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/pulls/comments/55954548","id":55954548,"diff_hunk":"@@ -1,2 +1,77 @@\n class Arena\n+  attr_accessor :gladiators\n+  attr_reader :name\n+\n+  ARENA_SIZE = 2 #An arena can only hold two gladiators at a time\n+  TRIDENT = \"Trident\"\n+  SPEAR = \"Spear\"\n+  CLUB = \"Club\"\n+\n+  def initialize(name)\n+    @name = name.capitalize\n+    @gladiators = []\n+  end\n+\n+  def add_gladiator(gladiator)\n+    gladiators << gladiator if gladiators.length < ARENA_SIZE\n+  end\n+\n+  def fight(life=true)\n+    return if gladiators.length < ARENA_SIZE\n+\n+    if maximus?\n+      gladiators.select!{|gladiator| gladiator.name == \"Maximus\"}","path":"lib/arena.rb","position":23,"original_position":23,"commit_id":"96433646786b4a9b82b67b15ccb6a38c6f6186e7","original_commit_id":"96433646786b4a9b82b67b15ccb6a38c6f6186e7","user":{"login":"nolds9","id":10698044,"avatar_url":"https://avatars.githubusercontent.com/u/10698044?v=3","gravatar_id":"","url":"https://api.github.com/users/nolds9","html_url":"https://github.com/nolds9","followers_url":"https://api.github.com/users/nolds9/followers","following_url":"https://api.github.com/users/nolds9/following{/other_user}","gists_url":"https://api.github.com/users/nolds9/gists{/gist_id}","starred_url":"https://api.github.com/users/nolds9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nolds9/subscriptions","organizations_url":"https://api.github.com/users/nolds9/orgs","repos_url":"https://api.github.com/users/nolds9/repos","events_url":"https://api.github.com/users/nolds9/events{/privacy}","received_events_url":"https://api.github.com/users/nolds9/received_events","type":"User","site_admin":false},"body":"why the need for the `!`?","created_at":"2016-03-14T04:09:37Z","updated_at":"2016-03-14T04:09:37Z","html_url":"https://github.com/ga-wdi-exercises/gladiator/pull/64#discussion_r55954548","pull_request_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/pulls/64","_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-exercises/gladiator/pulls/comments/55954548"},"html":{"href":"https://github.com/ga-wdi-exercises/gladiator/pull/64#discussion_r55954548"},"pull_request":{"href":"https://api.github.com/repos/ga-wdi-exercises/gladiator/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/pulls/64","id":62454056,"html_url":"https://github.com/ga-wdi-exercises/gladiator/pull/64","diff_url":"https://github.com/ga-wdi-exercises/gladiator/pull/64.diff","patch_url":"https://github.com/ga-wdi-exercises/gladiator/pull/64.patch","issue_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/issues/64","number":64,"state":"open","locked":false,"title":"Melissas solution","user":{"login":"holytoastr","id":4822313,"avatar_url":"https://avatars.githubusercontent.com/u/4822313?v=3","gravatar_id":"","url":"https://api.github.com/users/holytoastr","html_url":"https://github.com/holytoastr","followers_url":"https://api.github.com/users/holytoastr/followers","following_url":"https://api.github.com/users/holytoastr/following{/other_user}","gists_url":"https://api.github.com/users/holytoastr/gists{/gist_id}","starred_url":"https://api.github.com/users/holytoastr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holytoastr/subscriptions","organizations_url":"https://api.github.com/users/holytoastr/orgs","repos_url":"https://api.github.com/users/holytoastr/repos","events_url":"https://api.github.com/users/holytoastr/events{/privacy}","received_events_url":"https://api.github.com/users/holytoastr/received_events","type":"User","site_admin":false},"body":"Comfort: 5\r\nComplete: 5","created_at":"2016-03-10T20:53:30Z","updated_at":"2016-03-14T04:09:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"45e9bb0d33667265042114a5cbb085b2d073425b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/pulls/64/commits","review_comments_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/pulls/64/comments","review_comment_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/issues/64/comments","statuses_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/statuses/96433646786b4a9b82b67b15ccb6a38c6f6186e7","head":{"label":"holytoastr:melissas-solution","ref":"melissas-solution","sha":"96433646786b4a9b82b67b15ccb6a38c6f6186e7","user":{"login":"holytoastr","id":4822313,"avatar_url":"https://avatars.githubusercontent.com/u/4822313?v=3","gravatar_id":"","url":"https://api.github.com/users/holytoastr","html_url":"https://github.com/holytoastr","followers_url":"https://api.github.com/users/holytoastr/followers","following_url":"https://api.github.com/users/holytoastr/following{/other_user}","gists_url":"https://api.github.com/users/holytoastr/gists{/gist_id}","starred_url":"https://api.github.com/users/holytoastr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holytoastr/subscriptions","organizations_url":"https://api.github.com/users/holytoastr/orgs","repos_url":"https://api.github.com/users/holytoastr/repos","events_url":"https://api.github.com/users/holytoastr/events{/privacy}","received_events_url":"https://api.github.com/users/holytoastr/received_events","type":"User","site_admin":false},"repo":{"id":53588760,"name":"gladiator","full_name":"holytoastr/gladiator","owner":{"login":"holytoastr","id":4822313,"avatar_url":"https://avatars.githubusercontent.com/u/4822313?v=3","gravatar_id":"","url":"https://api.github.com/users/holytoastr","html_url":"https://github.com/holytoastr","followers_url":"https://api.github.com/users/holytoastr/followers","following_url":"https://api.github.com/users/holytoastr/following{/other_user}","gists_url":"https://api.github.com/users/holytoastr/gists{/gist_id}","starred_url":"https://api.github.com/users/holytoastr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holytoastr/subscriptions","organizations_url":"https://api.github.com/users/holytoastr/orgs","repos_url":"https://api.github.com/users/holytoastr/repos","events_url":"https://api.github.com/users/holytoastr/events{/privacy}","received_events_url":"https://api.github.com/users/holytoastr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/holytoastr/gladiator","description":"[ruby, rspec]","fork":true,"url":"https://api.github.com/repos/holytoastr/gladiator","forks_url":"https://api.github.com/repos/holytoastr/gladiator/forks","keys_url":"https://api.github.com/repos/holytoastr/gladiator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/holytoastr/gladiator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/holytoastr/gladiator/teams","hooks_url":"https://api.github.com/repos/holytoastr/gladiator/hooks","issue_events_url":"https://api.github.com/repos/holytoastr/gladiator/issues/events{/number}","events_url":"https://api.github.com/repos/holytoastr/gladiator/events","assignees_url":"https://api.github.com/repos/holytoastr/gladiator/assignees{/user}","branches_url":"https://api.github.com/repos/holytoastr/gladiator/branches{/branch}","tags_url":"https://api.github.com/repos/holytoastr/gladiator/tags","blobs_url":"https://api.github.com/repos/holytoastr/gladiator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/holytoastr/gladiator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/holytoastr/gladiator/git/refs{/sha}","trees_url":"https://api.github.com/repos/holytoastr/gladiator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/holytoastr/gladiator/statuses/{sha}","languages_url":"https://api.github.com/repos/holytoastr/gladiator/languages","stargazers_url":"https://api.github.com/repos/holytoastr/gladiator/stargazers","contributors_url":"https://api.github.com/repos/holytoastr/gladiator/contributors","subscribers_url":"https://api.github.com/repos/holytoastr/gladiator/subscribers","subscription_url":"https://api.github.com/repos/holytoastr/gladiator/subscription","commits_url":"https://api.github.com/repos/holytoastr/gladiator/commits{/sha}","git_commits_url":"https://api.github.com/repos/holytoastr/gladiator/git/commits{/sha}","comments_url":"https://api.github.com/repos/holytoastr/gladiator/comments{/number}","issue_comment_url":"https://api.github.com/repos/holytoastr/gladiator/issues/comments{/number}","contents_url":"https://api.github.com/repos/holytoastr/gladiator/contents/{+path}","compare_url":"https://api.github.com/repos/holytoastr/gladiator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/holytoastr/gladiator/merges","archive_url":"https://api.github.com/repos/holytoastr/gladiator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/holytoastr/gladiator/downloads","issues_url":"https://api.github.com/repos/holytoastr/gladiator/issues{/number}","pulls_url":"https://api.github.com/repos/holytoastr/gladiator/pulls{/number}","milestones_url":"https://api.github.com/repos/holytoastr/gladiator/milestones{/number}","notifications_url":"https://api.github.com/repos/holytoastr/gladiator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/holytoastr/gladiator/labels{/name}","releases_url":"https://api.github.com/repos/holytoastr/gladiator/releases{/id}","deployments_url":"https://api.github.com/repos/holytoastr/gladiator/deployments","created_at":"2016-03-10T14:00:22Z","updated_at":"2016-03-10T14:00:23Z","pushed_at":"2016-03-11T10:47:50Z","git_url":"git://github.com/holytoastr/gladiator.git","ssh_url":"git@github.com:holytoastr/gladiator.git","clone_url":"https://github.com/holytoastr/gladiator.git","svn_url":"https://github.com/holytoastr/gladiator","homepage":null,"size":17,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"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":"ga-wdi-exercises:master","ref":"master","sha":"225d8ed0566094270deb1021684ebde3a0038e37","user":{"login":"ga-wdi-exercises","id":16946328,"avatar_url":"https://avatars.githubusercontent.com/u/16946328?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-exercises","html_url":"https://github.com/ga-wdi-exercises","followers_url":"https://api.github.com/users/ga-wdi-exercises/followers","following_url":"https://api.github.com/users/ga-wdi-exercises/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-exercises/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-exercises/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-exercises/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-exercises/orgs","repos_url":"https://api.github.com/users/ga-wdi-exercises/repos","events_url":"https://api.github.com/users/ga-wdi-exercises/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-exercises/received_events","type":"Organization","site_admin":false},"repo":{"id":37619822,"name":"gladiator","full_name":"ga-wdi-exercises/gladiator","owner":{"login":"ga-wdi-exercises","id":16946328,"avatar_url":"https://avatars.githubusercontent.com/u/16946328?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-exercises","html_url":"https://github.com/ga-wdi-exercises","followers_url":"https://api.github.com/users/ga-wdi-exercises/followers","following_url":"https://api.github.com/users/ga-wdi-exercises/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-exercises/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-exercises/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-exercises/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-exercises/orgs","repos_url":"https://api.github.com/users/ga-wdi-exercises/repos","events_url":"https://api.github.com/users/ga-wdi-exercises/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-exercises/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-wdi-exercises/gladiator","description":"[ruby, rspec]","fork":false,"url":"https://api.github.com/repos/ga-wdi-exercises/gladiator","forks_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/forks","keys_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/teams","hooks_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/hooks","issue_events_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/issues/events{/number}","events_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/events","assignees_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/assignees{/user}","branches_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/branches{/branch}","tags_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/tags","blobs_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/languages","stargazers_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/stargazers","contributors_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/contributors","subscribers_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/subscribers","subscription_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/subscription","commits_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/contents/{+path}","compare_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/merges","archive_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/downloads","issues_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/issues{/number}","pulls_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/labels{/name}","releases_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/releases{/id}","deployments_url":"https://api.github.com/repos/ga-wdi-exercises/gladiator/deployments","created_at":"2015-06-17T20:43:51Z","updated_at":"2016-02-02T23:46:44Z","pushed_at":"2016-03-12T16:49:13Z","git_url":"git://github.com/ga-wdi-exercises/gladiator.git","ssh_url":"git@github.com:ga-wdi-exercises/gladiator.git","clone_url":"https://github.com/ga-wdi-exercises/gladiator.git","svn_url":"https://github.com/ga-wdi-exercises/gladiator","homepage":null,"size":66,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":82,"mirror_url":null,"open_issues_count":27,"forks":82,"open_issues":27,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-exercises/gladiator/pulls/64"},"html":{"href":"https://github.com/ga-wdi-exercises/gladiator/pull/64"},"issue":{"href":"https://api.github.com/repos/ga-wdi-exercises/gladiator/issues/64"},"comments":{"href":"https://api.github.com/repos/ga-wdi-exercises/gladiator/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-wdi-exercises/gladiator/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-wdi-exercises/gladiator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-wdi-exercises/gladiator/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/ga-wdi-exercises/gladiator/statuses/96433646786b4a9b82b67b15ccb6a38c6f6186e7"}}}}