{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/36766476","id":36766476,"diff_hunk":"@@ -0,0 +1,23 @@\n+class Player\n+\n+  OPTIONS = [:rock, :paper, :scissors]\n+\n+  attr_accessor :name\n+  attr_reader :selection\n+\n+  def initialize name\n+    @name = name\n+    @selection = nil\n+  end\n+\n+  def choice option\n+    raise \"Not a valid option\" if OPTIONS.include?(option.to_sym) == false # !OPTIONS.include?(option.to_sym) use ! for opposite\n+    @selection = option.to_sym\n+  end\n+\n+  # add method to return choice of players\n+  # def random_selection\n+  #   x = [:rock, :paper, :scissors].sample\n+  #   @selection = x\n+  # end","path":"lib/player.rb","position":22,"original_position":22,"commit_id":"16e77b27354c1a929fd40a91174e9db6e5b78817","original_commit_id":"16e77b27354c1a929fd40a91174e9db6e5b78817","user":{"login":"danldb","id":6850045,"avatar_url":"https://avatars.githubusercontent.com/u/6850045?v=3","gravatar_id":"","url":"https://api.github.com/users/danldb","html_url":"https://github.com/danldb","followers_url":"https://api.github.com/users/danldb/followers","following_url":"https://api.github.com/users/danldb/following{/other_user}","gists_url":"https://api.github.com/users/danldb/gists{/gist_id}","starred_url":"https://api.github.com/users/danldb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danldb/subscriptions","organizations_url":"https://api.github.com/users/danldb/orgs","repos_url":"https://api.github.com/users/danldb/repos","events_url":"https://api.github.com/users/danldb/events{/privacy}","received_events_url":"https://api.github.com/users/danldb/received_events","type":"User","site_admin":false},"body":"don't commit commented code","created_at":"2015-08-11T16:33:51Z","updated_at":"2015-08-11T16:33:51Z","html_url":"https://github.com/makersacademy/rps-challenge/pull/116#discussion_r36766476","pull_request_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/116","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/comments/36766476"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/116#discussion_r36766476"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/116"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/116","id":41974939,"html_url":"https://github.com/makersacademy/rps-challenge/pull/116","diff_url":"https://github.com/makersacademy/rps-challenge/pull/116.diff","patch_url":"https://github.com/makersacademy/rps-challenge/pull/116.patch","issue_url":"https://api.github.com/repos/makersacademy/rps-challenge/issues/116","number":116,"state":"open","locked":false,"title":"version 1 finished","user":{"login":"sivanpatel","id":10670079,"avatar_url":"https://avatars.githubusercontent.com/u/10670079?v=3","gravatar_id":"","url":"https://api.github.com/users/sivanpatel","html_url":"https://github.com/sivanpatel","followers_url":"https://api.github.com/users/sivanpatel/followers","following_url":"https://api.github.com/users/sivanpatel/following{/other_user}","gists_url":"https://api.github.com/users/sivanpatel/gists{/gist_id}","starred_url":"https://api.github.com/users/sivanpatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sivanpatel/subscriptions","organizations_url":"https://api.github.com/users/sivanpatel/orgs","repos_url":"https://api.github.com/users/sivanpatel/repos","events_url":"https://api.github.com/users/sivanpatel/events{/privacy}","received_events_url":"https://api.github.com/users/sivanpatel/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-09T18:45:24Z","updated_at":"2015-08-11T16:33:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"973a22af702a0da4f607e48cd0676763ecefb472","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/116/commits","review_comments_url":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/116/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/116/comments","statuses_url":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/16e77b27354c1a929fd40a91174e9db6e5b78817","head":{"label":"sivanpatel:master","ref":"master","sha":"16e77b27354c1a929fd40a91174e9db6e5b78817","user":{"login":"sivanpatel","id":10670079,"avatar_url":"https://avatars.githubusercontent.com/u/10670079?v=3","gravatar_id":"","url":"https://api.github.com/users/sivanpatel","html_url":"https://github.com/sivanpatel","followers_url":"https://api.github.com/users/sivanpatel/followers","following_url":"https://api.github.com/users/sivanpatel/following{/other_user}","gists_url":"https://api.github.com/users/sivanpatel/gists{/gist_id}","starred_url":"https://api.github.com/users/sivanpatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sivanpatel/subscriptions","organizations_url":"https://api.github.com/users/sivanpatel/orgs","repos_url":"https://api.github.com/users/sivanpatel/repos","events_url":"https://api.github.com/users/sivanpatel/events{/privacy}","received_events_url":"https://api.github.com/users/sivanpatel/received_events","type":"User","site_admin":false},"repo":{"id":40400934,"name":"rps-challenge","full_name":"sivanpatel/rps-challenge","owner":{"login":"sivanpatel","id":10670079,"avatar_url":"https://avatars.githubusercontent.com/u/10670079?v=3","gravatar_id":"","url":"https://api.github.com/users/sivanpatel","html_url":"https://github.com/sivanpatel","followers_url":"https://api.github.com/users/sivanpatel/followers","following_url":"https://api.github.com/users/sivanpatel/following{/other_user}","gists_url":"https://api.github.com/users/sivanpatel/gists{/gist_id}","starred_url":"https://api.github.com/users/sivanpatel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sivanpatel/subscriptions","organizations_url":"https://api.github.com/users/sivanpatel/orgs","repos_url":"https://api.github.com/users/sivanpatel/repos","events_url":"https://api.github.com/users/sivanpatel/events{/privacy}","received_events_url":"https://api.github.com/users/sivanpatel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sivanpatel/rps-challenge","description":"Create the Rock Paper Scissors Game","fork":true,"url":"https://api.github.com/repos/sivanpatel/rps-challenge","forks_url":"https://api.github.com/repos/sivanpatel/rps-challenge/forks","keys_url":"https://api.github.com/repos/sivanpatel/rps-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sivanpatel/rps-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sivanpatel/rps-challenge/teams","hooks_url":"https://api.github.com/repos/sivanpatel/rps-challenge/hooks","issue_events_url":"https://api.github.com/repos/sivanpatel/rps-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/sivanpatel/rps-challenge/events","assignees_url":"https://api.github.com/repos/sivanpatel/rps-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/sivanpatel/rps-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/sivanpatel/rps-challenge/tags","blobs_url":"https://api.github.com/repos/sivanpatel/rps-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sivanpatel/rps-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sivanpatel/rps-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/sivanpatel/rps-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sivanpatel/rps-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/sivanpatel/rps-challenge/languages","stargazers_url":"https://api.github.com/repos/sivanpatel/rps-challenge/stargazers","contributors_url":"https://api.github.com/repos/sivanpatel/rps-challenge/contributors","subscribers_url":"https://api.github.com/repos/sivanpatel/rps-challenge/subscribers","subscription_url":"https://api.github.com/repos/sivanpatel/rps-challenge/subscription","commits_url":"https://api.github.com/repos/sivanpatel/rps-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/sivanpatel/rps-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/sivanpatel/rps-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/sivanpatel/rps-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/sivanpatel/rps-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/sivanpatel/rps-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sivanpatel/rps-challenge/merges","archive_url":"https://api.github.com/repos/sivanpatel/rps-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sivanpatel/rps-challenge/downloads","issues_url":"https://api.github.com/repos/sivanpatel/rps-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/sivanpatel/rps-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/sivanpatel/rps-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/sivanpatel/rps-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sivanpatel/rps-challenge/labels{/name}","releases_url":"https://api.github.com/repos/sivanpatel/rps-challenge/releases{/id}","created_at":"2015-08-08T11:33:23Z","updated_at":"2015-08-08T11:33:24Z","pushed_at":"2015-08-10T09:08:35Z","git_url":"git://github.com/sivanpatel/rps-challenge.git","ssh_url":"git@github.com:sivanpatel/rps-challenge.git","clone_url":"https://github.com/sivanpatel/rps-challenge.git","svn_url":"https://github.com/sivanpatel/rps-challenge","homepage":null,"size":107,"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":"makersacademy:master","ref":"master","sha":"59953a8672f5fdb2f74d149a875340446276117a","user":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","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,"name":"rps-challenge","full_name":"makersacademy/rps-challenge","owner":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","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}","created_at":"2014-11-22T17:15:17Z","updated_at":"2015-04-02T19:30:46Z","pushed_at":"2015-08-10T21:15:39Z","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":39058,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":133,"mirror_url":null,"open_issues_count":21,"forks":133,"open_issues":21,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/116"},"html":{"href":"https://github.com/makersacademy/rps-challenge/pull/116"},"issue":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/116"},"comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/issues/116/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/pulls/116/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/116/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/rps-challenge/statuses/16e77b27354c1a929fd40a91174e9db6e5b78817"}}}}