{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/199461452","pull_request_review_id":133582745,"id":199461452,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTQ2MTQ1Mg==","diff_hunk":"@@ -0,0 +1,58 @@\n+class Game\n+  attr_reader :player_hand, :player # , :opponent_hand\n+\n+  def initialize(player)\n+    @player = player\n+    @player_hand = nil\n+    @opponent_hand = nil\n+    @rock = 'rock'\n+    @paper = 'paper'\n+    @scissors = 'scissors'\n+  end\n+\n+  def self.create(player)\n+    @game = Game.new(player)\n+  end\n+\n+  def self.instance\n+    @game\n+  end\n+\n+  def rock\n+    @player_hand = @rock\n+  end\n+\n+  def paper\n+    @player_hand = @paper\n+  end\n+\n+  def scissors\n+    @player_hand = @scissors\n+  end\n+\n+  def opponent_hand\n+    @opponent_hand = random_hand\n+  end\n+\n+  def random_hand\n+    %w[rock paper scissors].sample\n+  end\n+\n+  def winner?","path":"lib/game.rb","position":41,"original_position":41,"commit_id":"51373afba73474733f358fea5ca37a18715af644","original_commit_id":"51373afba73474733f358fea5ca37a18715af644","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Metrics/CyclomaticComplexity: Cyclomatic complexity for winner? is too high. [7/6]<br>Metrics/PerceivedComplexity: Perceived complexity for winner? is too high. [8/7]","created_at":"2018-07-02T11:05:57Z","updated_at":"2018-07-02T11:05:58Z","html_url":"https://github.com/makersacademy/rps-challenge/pull/999#discussion_r199461452","pull_request_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/999","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/199461452"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/999#discussion_r199461452"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/999"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/999","id":198610263,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NjEwMjYz","html_url":"https://github.com/makersacademy/rps-challenge/pull/999","diff_url":"https://github.com/makersacademy/rps-challenge/pull/999.diff","patch_url":"https://github.com/makersacademy/rps-challenge/pull/999.patch","issue_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/999","number":999,"state":"open","locked":false,"title":"RPS Layth","user":{"login":"laythq","id":38889113,"node_id":"MDQ6VXNlcjM4ODg5MTEz","avatar_url":"https://avatars3.githubusercontent.com/u/38889113?v=4","gravatar_id":"","url":"https://api.github.com/users/laythq","html_url":"https://github.com/laythq","followers_url":"https://api.github.com/users/laythq/followers","following_url":"https://api.github.com/users/laythq/following{/other_user}","gists_url":"https://api.github.com/users/laythq/gists{/gist_id}","starred_url":"https://api.github.com/users/laythq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laythq/subscriptions","organizations_url":"https://api.github.com/users/laythq/orgs","repos_url":"https://api.github.com/users/laythq/repos","events_url":"https://api.github.com/users/laythq/events{/privacy}","received_events_url":"https://api.github.com/users/laythq/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-02T08:47:02Z","updated_at":"2018-07-02T11:05:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"95a2e5da3124b6ab61c3b4fa7cb3dae02c94b10f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/999/commits","review_comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/999/comments","review_comment_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/999/comments","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/51373afba73474733f358fea5ca37a18715af644","head":{"label":"laythq:master","ref":"master","sha":"51373afba73474733f358fea5ca37a18715af644","user":{"login":"laythq","id":38889113,"node_id":"MDQ6VXNlcjM4ODg5MTEz","avatar_url":"https://avatars3.githubusercontent.com/u/38889113?v=4","gravatar_id":"","url":"https://api.github.com/users/laythq","html_url":"https://github.com/laythq","followers_url":"https://api.github.com/users/laythq/followers","following_url":"https://api.github.com/users/laythq/following{/other_user}","gists_url":"https://api.github.com/users/laythq/gists{/gist_id}","starred_url":"https://api.github.com/users/laythq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laythq/subscriptions","organizations_url":"https://api.github.com/users/laythq/orgs","repos_url":"https://api.github.com/users/laythq/repos","events_url":"https://api.github.com/users/laythq/events{/privacy}","received_events_url":"https://api.github.com/users/laythq/received_events","type":"User","site_admin":false},"repo":{"id":139412931,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk0MTI5MzE=","name":"rps-challenge","full_name":"laythq/rps-challenge","owner":{"login":"laythq","id":38889113,"node_id":"MDQ6VXNlcjM4ODg5MTEz","avatar_url":"https://avatars3.githubusercontent.com/u/38889113?v=4","gravatar_id":"","url":"https://api.github.com/users/laythq","html_url":"https://github.com/laythq","followers_url":"https://api.github.com/users/laythq/followers","following_url":"https://api.github.com/users/laythq/following{/other_user}","gists_url":"https://api.github.com/users/laythq/gists{/gist_id}","starred_url":"https://api.github.com/users/laythq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laythq/subscriptions","organizations_url":"https://api.github.com/users/laythq/orgs","repos_url":"https://api.github.com/users/laythq/repos","events_url":"https://api.github.com/users/laythq/events{/privacy}","received_events_url":"https://api.github.com/users/laythq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/laythq/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":true,"url":"https://api.github.com/repos/laythq/rps-challenge","forks_url":"https://api.github.com/repos/laythq/rps-challenge/forks","keys_url":"https://api.github.com/repos/laythq/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laythq/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laythq/rps-challenge/teams","hooks_url":"https://api.github.com/repos/laythq/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/laythq/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/laythq/rps-challenge/events","assignees_url":"https://api.github.com/repos/laythq/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/laythq/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/laythq/rps-challenge/tags","blobs_url":"https://api.github.com/repos/laythq/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laythq/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laythq/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/laythq/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laythq/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/laythq/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/laythq/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/laythq/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/laythq/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/laythq/rps-challenge/subscription","commits_url":"https://api.github.com/repos/laythq/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/laythq/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/laythq/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/laythq/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/laythq/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/laythq/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laythq/rps-challenge/merges","archive_url":"https://api.github.com/repos/laythq/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laythq/rps-challenge/downloads","issues_url":"https://api.github.com/repos/laythq/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/laythq/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/laythq/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/laythq/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laythq/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/laythq/rps-challenge/releases{/id}","deployments_url":"https://api.github.com/repos/laythq/rps-challenge/deployments","created_at":"2018-07-02T08:21:31Z","updated_at":"2018-07-02T11:05:47Z","pushed_at":"2018-07-02T11:05:45Z","git_url":"git://github.com/laythq/rps-challenge.git","ssh_url":"git@github.com:laythq/rps-challenge.git","clone_url":"https://github.com/laythq/rps-challenge.git","svn_url":"https://github.com/laythq/rps-challenge","homepage":null,"size":80,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"makersacademy:master","ref":"master","sha":"a65f8c4fde946f4570fdba64d41a5bcb00659096","user":{"login":"makersacademy","id":3636186,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MzYxODY=","avatar_url":"https://avatars2.githubusercontent.com/u/3636186?v=4","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":27006066,"node_id":"MDEwOlJlcG9zaXRvcnkyNzAwNjA2Ng==","name":"rps-challenge","full_name":"makersacademy/rps-challenge","owner":{"login":"makersacademy","id":3636186,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2MzYxODY=","avatar_url":"https://avatars2.githubusercontent.com/u/3636186?v=4","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/makersacademy/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":false,"url":"https://api.github.com/repos/makersacademy/rps-challenge","forks_url":"https://api.github.com/repos/makersacademy/rps-challenge/forks","keys_url":"https://api.github.com/repos/makersacademy/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makersacademy/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makersacademy/rps-challenge/teams","hooks_url":"https://api.github.com/repos/makersacademy/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/makersacademy/rps-challenge/events","assignees_url":"https://api.github.com/repos/makersacademy/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/makersacademy/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/makersacademy/rps-challenge/tags","blobs_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/makersacademy/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/makersacademy/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/makersacademy/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/makersacademy/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/makersacademy/rps-challenge/subscription","commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/makersacademy/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/makersacademy/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makersacademy/rps-challenge/merges","archive_url":"https://api.github.com/repos/makersacademy/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makersacademy/rps-challenge/downloads","issues_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/makersacademy/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/makersacademy/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makersacademy/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/makersacademy/rps-challenge/releases{/id}","deployments_url":"https://api.github.com/repos/makersacademy/rps-challenge/deployments","created_at":"2014-11-22T17:15:17Z","updated_at":"2018-05-21T09:42:41Z","pushed_at":"2018-07-02T11:05:47Z","git_url":"git://github.com/makersacademy/rps-challenge.git","ssh_url":"git@github.com:makersacademy/rps-challenge.git","clone_url":"https://github.com/makersacademy/rps-challenge.git","svn_url":"https://github.com/makersacademy/rps-challenge","homepage":null,"size":73,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":956,"mirror_url":null,"archived":false,"open_issues_count":99,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":956,"open_issues":99,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/999"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/999"},"issue":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/999"},"comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/999/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/999/comments"},"review_comment":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/999/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/51373afba73474733f358fea5ca37a18715af644"}},"author_association":"NONE"}}
{"actor":{"display_login":"houndci-bot"}}