{"action":"opened","number":93,"pull_request":{"url":"https://api.github.com/repos/haijima/quiz/pulls/93","id":36099634,"html_url":"https://github.com/haijima/quiz/pull/93","diff_url":"https://github.com/haijima/quiz/pull/93.diff","patch_url":"https://github.com/haijima/quiz/pull/93.patch","issue_url":"https://api.github.com/repos/haijima/quiz/issues/93","number":93,"state":"open","locked":false,"title":"解答者の回答情報までJSONで返すようにした","user":{"login":"matsumatsu20","id":9876274,"avatar_url":"https://avatars.githubusercontent.com/u/9876274?v=3","gravatar_id":"","url":"https://api.github.com/users/matsumatsu20","html_url":"https://github.com/matsumatsu20","followers_url":"https://api.github.com/users/matsumatsu20/followers","following_url":"https://api.github.com/users/matsumatsu20/following{/other_user}","gists_url":"https://api.github.com/users/matsumatsu20/gists{/gist_id}","starred_url":"https://api.github.com/users/matsumatsu20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matsumatsu20/subscriptions","organizations_url":"https://api.github.com/users/matsumatsu20/orgs","repos_url":"https://api.github.com/users/matsumatsu20/repos","events_url":"https://api.github.com/users/matsumatsu20/events{/privacy}","received_events_url":"https://api.github.com/users/matsumatsu20/received_events","type":"User","site_admin":false},"body":"【注意】\r\n※既存のコードに手を加えているので、こいつをマージされると、クライアント側で改修が必要になると思います。（階層が一つ深くなるので、今date.rankとかやっているところがdata.user.rankとかになるのかな？）\r\n\r\n【やったこと】\r\n/api/answerers/scoreで\r\nanswerersのテーブルの中身しか返していなかったので加えて\r\n①answerersに紐づく、answersの情報\r\n②そのanswerersが参加していたeventのquestionsを返すことにした\r\n\r\nhttps://github.com/haijima/quiz/pull/83\r\nこちらのプルリクで平均回答時間がとれるのでこれにより\r\n\r\n・順位\r\n・平均回答時間（正解した場合の）\r\n・正答数（X問/Y問中）\r\n・何問目で何を選択し、正誤、正解は何番だったか\r\n\r\n上記のような値がとれるようになります。\r\n","created_at":"2015-05-24T08:08:39Z","updated_at":"2015-05-24T08:08:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/haijima/quiz/pulls/93/commits","review_comments_url":"https://api.github.com/repos/haijima/quiz/pulls/93/comments","review_comment_url":"https://api.github.com/repos/haijima/quiz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/haijima/quiz/issues/93/comments","statuses_url":"https://api.github.com/repos/haijima/quiz/statuses/3df92a7bd5fa63ec94002481d77f7977fe627525","head":{"label":"haijima:show_deteals_of_answers_info","ref":"show_deteals_of_answers_info","sha":"3df92a7bd5fa63ec94002481d77f7977fe627525","user":{"login":"haijima","id":2677173,"avatar_url":"https://avatars.githubusercontent.com/u/2677173?v=3","gravatar_id":"","url":"https://api.github.com/users/haijima","html_url":"https://github.com/haijima","followers_url":"https://api.github.com/users/haijima/followers","following_url":"https://api.github.com/users/haijima/following{/other_user}","gists_url":"https://api.github.com/users/haijima/gists{/gist_id}","starred_url":"https://api.github.com/users/haijima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haijima/subscriptions","organizations_url":"https://api.github.com/users/haijima/orgs","repos_url":"https://api.github.com/users/haijima/repos","events_url":"https://api.github.com/users/haijima/events{/privacy}","received_events_url":"https://api.github.com/users/haijima/received_events","type":"User","site_admin":false},"repo":{"id":29731107,"name":"quiz","full_name":"haijima/quiz","owner":{"login":"haijima","id":2677173,"avatar_url":"https://avatars.githubusercontent.com/u/2677173?v=3","gravatar_id":"","url":"https://api.github.com/users/haijima","html_url":"https://github.com/haijima","followers_url":"https://api.github.com/users/haijima/followers","following_url":"https://api.github.com/users/haijima/following{/other_user}","gists_url":"https://api.github.com/users/haijima/gists{/gist_id}","starred_url":"https://api.github.com/users/haijima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haijima/subscriptions","organizations_url":"https://api.github.com/users/haijima/orgs","repos_url":"https://api.github.com/users/haijima/repos","events_url":"https://api.github.com/users/haijima/events{/privacy}","received_events_url":"https://api.github.com/users/haijima/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/haijima/quiz","description":"クイズ プラットフォーム","fork":false,"url":"https://api.github.com/repos/haijima/quiz","forks_url":"https://api.github.com/repos/haijima/quiz/forks","keys_url":"https://api.github.com/repos/haijima/quiz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haijima/quiz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haijima/quiz/teams","hooks_url":"https://api.github.com/repos/haijima/quiz/hooks","issue_events_url":"https://api.github.com/repos/haijima/quiz/issues/events{/number}","events_url":"https://api.github.com/repos/haijima/quiz/events","assignees_url":"https://api.github.com/repos/haijima/quiz/assignees{/user}","branches_url":"https://api.github.com/repos/haijima/quiz/branches{/branch}","tags_url":"https://api.github.com/repos/haijima/quiz/tags","blobs_url":"https://api.github.com/repos/haijima/quiz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haijima/quiz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haijima/quiz/git/refs{/sha}","trees_url":"https://api.github.com/repos/haijima/quiz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haijima/quiz/statuses/{sha}","languages_url":"https://api.github.com/repos/haijima/quiz/languages","stargazers_url":"https://api.github.com/repos/haijima/quiz/stargazers","contributors_url":"https://api.github.com/repos/haijima/quiz/contributors","subscribers_url":"https://api.github.com/repos/haijima/quiz/subscribers","subscription_url":"https://api.github.com/repos/haijima/quiz/subscription","commits_url":"https://api.github.com/repos/haijima/quiz/commits{/sha}","git_commits_url":"https://api.github.com/repos/haijima/quiz/git/commits{/sha}","comments_url":"https://api.github.com/repos/haijima/quiz/comments{/number}","issue_comment_url":"https://api.github.com/repos/haijima/quiz/issues/comments{/number}","contents_url":"https://api.github.com/repos/haijima/quiz/contents/{+path}","compare_url":"https://api.github.com/repos/haijima/quiz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haijima/quiz/merges","archive_url":"https://api.github.com/repos/haijima/quiz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haijima/quiz/downloads","issues_url":"https://api.github.com/repos/haijima/quiz/issues{/number}","pulls_url":"https://api.github.com/repos/haijima/quiz/pulls{/number}","milestones_url":"https://api.github.com/repos/haijima/quiz/milestones{/number}","notifications_url":"https://api.github.com/repos/haijima/quiz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haijima/quiz/labels{/name}","releases_url":"https://api.github.com/repos/haijima/quiz/releases{/id}","created_at":"2015-01-23T12:11:08Z","updated_at":"2015-05-08T08:39:42Z","pushed_at":"2015-05-24T08:08:35Z","git_url":"git://github.com/haijima/quiz.git","ssh_url":"git@github.com:haijima/quiz.git","clone_url":"https://github.com/haijima/quiz.git","svn_url":"https://github.com/haijima/quiz","homepage":"","size":6036,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":29,"forks":0,"open_issues":29,"watchers":0,"default_branch":"master"}},"base":{"label":"haijima:master","ref":"master","sha":"ee8323a40197bcedec05c0daea38b181fdef0806","user":{"login":"haijima","id":2677173,"avatar_url":"https://avatars.githubusercontent.com/u/2677173?v=3","gravatar_id":"","url":"https://api.github.com/users/haijima","html_url":"https://github.com/haijima","followers_url":"https://api.github.com/users/haijima/followers","following_url":"https://api.github.com/users/haijima/following{/other_user}","gists_url":"https://api.github.com/users/haijima/gists{/gist_id}","starred_url":"https://api.github.com/users/haijima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haijima/subscriptions","organizations_url":"https://api.github.com/users/haijima/orgs","repos_url":"https://api.github.com/users/haijima/repos","events_url":"https://api.github.com/users/haijima/events{/privacy}","received_events_url":"https://api.github.com/users/haijima/received_events","type":"User","site_admin":false},"repo":{"id":29731107,"name":"quiz","full_name":"haijima/quiz","owner":{"login":"haijima","id":2677173,"avatar_url":"https://avatars.githubusercontent.com/u/2677173?v=3","gravatar_id":"","url":"https://api.github.com/users/haijima","html_url":"https://github.com/haijima","followers_url":"https://api.github.com/users/haijima/followers","following_url":"https://api.github.com/users/haijima/following{/other_user}","gists_url":"https://api.github.com/users/haijima/gists{/gist_id}","starred_url":"https://api.github.com/users/haijima/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haijima/subscriptions","organizations_url":"https://api.github.com/users/haijima/orgs","repos_url":"https://api.github.com/users/haijima/repos","events_url":"https://api.github.com/users/haijima/events{/privacy}","received_events_url":"https://api.github.com/users/haijima/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/haijima/quiz","description":"クイズ プラットフォーム","fork":false,"url":"https://api.github.com/repos/haijima/quiz","forks_url":"https://api.github.com/repos/haijima/quiz/forks","keys_url":"https://api.github.com/repos/haijima/quiz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haijima/quiz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haijima/quiz/teams","hooks_url":"https://api.github.com/repos/haijima/quiz/hooks","issue_events_url":"https://api.github.com/repos/haijima/quiz/issues/events{/number}","events_url":"https://api.github.com/repos/haijima/quiz/events","assignees_url":"https://api.github.com/repos/haijima/quiz/assignees{/user}","branches_url":"https://api.github.com/repos/haijima/quiz/branches{/branch}","tags_url":"https://api.github.com/repos/haijima/quiz/tags","blobs_url":"https://api.github.com/repos/haijima/quiz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haijima/quiz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haijima/quiz/git/refs{/sha}","trees_url":"https://api.github.com/repos/haijima/quiz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haijima/quiz/statuses/{sha}","languages_url":"https://api.github.com/repos/haijima/quiz/languages","stargazers_url":"https://api.github.com/repos/haijima/quiz/stargazers","contributors_url":"https://api.github.com/repos/haijima/quiz/contributors","subscribers_url":"https://api.github.com/repos/haijima/quiz/subscribers","subscription_url":"https://api.github.com/repos/haijima/quiz/subscription","commits_url":"https://api.github.com/repos/haijima/quiz/commits{/sha}","git_commits_url":"https://api.github.com/repos/haijima/quiz/git/commits{/sha}","comments_url":"https://api.github.com/repos/haijima/quiz/comments{/number}","issue_comment_url":"https://api.github.com/repos/haijima/quiz/issues/comments{/number}","contents_url":"https://api.github.com/repos/haijima/quiz/contents/{+path}","compare_url":"https://api.github.com/repos/haijima/quiz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haijima/quiz/merges","archive_url":"https://api.github.com/repos/haijima/quiz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haijima/quiz/downloads","issues_url":"https://api.github.com/repos/haijima/quiz/issues{/number}","pulls_url":"https://api.github.com/repos/haijima/quiz/pulls{/number}","milestones_url":"https://api.github.com/repos/haijima/quiz/milestones{/number}","notifications_url":"https://api.github.com/repos/haijima/quiz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haijima/quiz/labels{/name}","releases_url":"https://api.github.com/repos/haijima/quiz/releases{/id}","created_at":"2015-01-23T12:11:08Z","updated_at":"2015-05-08T08:39:42Z","pushed_at":"2015-05-24T08:08:35Z","git_url":"git://github.com/haijima/quiz.git","ssh_url":"git@github.com:haijima/quiz.git","clone_url":"https://github.com/haijima/quiz.git","svn_url":"https://github.com/haijima/quiz","homepage":"","size":6036,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":29,"forks":0,"open_issues":29,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/haijima/quiz/pulls/93"},"html":{"href":"https://github.com/haijima/quiz/pull/93"},"issue":{"href":"https://api.github.com/repos/haijima/quiz/issues/93"},"comments":{"href":"https://api.github.com/repos/haijima/quiz/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/haijima/quiz/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/haijima/quiz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/haijima/quiz/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/haijima/quiz/statuses/3df92a7bd5fa63ec94002481d77f7977fe627525"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":4,"deletions":1,"changed_files":1}}