{"action":"created","comment":{"url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/pulls/comments/42104619","id":42104619,"diff_hunk":"@@ -0,0 +1,17 @@\n+module Ruboty\n+  module CanIBorrow\n+    module Actions\n+      class List < Base\n+        def call\n+          message.reply(list)\n+        end\n+\n+        def list\n+          leager.map do |book, borrow_history|","path":"lib/ruboty/can_i_borrow/actions/list.rb","position":10,"original_position":10,"commit_id":"527e4a3d9ae0f5bc26cd5feabd79bb6623002307","original_commit_id":"527e4a3d9ae0f5bc26cd5feabd79bb6623002307","user":{"login":"a-know","id":1097533,"avatar_url":"https://avatars.githubusercontent.com/u/1097533?v=3","gravatar_id":"","url":"https://api.github.com/users/a-know","html_url":"https://github.com/a-know","followers_url":"https://api.github.com/users/a-know/followers","following_url":"https://api.github.com/users/a-know/following{/other_user}","gists_url":"https://api.github.com/users/a-know/gists{/gist_id}","starred_url":"https://api.github.com/users/a-know/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-know/subscriptions","organizations_url":"https://api.github.com/users/a-know/orgs","repos_url":"https://api.github.com/users/a-know/repos","events_url":"https://api.github.com/users/a-know/events{/privacy}","received_events_url":"https://api.github.com/users/a-know/received_events","type":"User","site_admin":false},"body":"この plugin としては、本（ `book` ）に限った用途で使われることを想定しているわけではないと思うので、\r\n変数名は汎用的なものにしたほうがいいと思いました。（本家の README を見る限りは `item` とかが妥当でしょうか）","created_at":"2015-10-15T10:06:58Z","updated_at":"2015-10-15T10:06:58Z","html_url":"https://github.com/TasukuNakano/ruboty-can_i_borrow/pull/1#discussion_r42104619","pull_request_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/pulls/comments/42104619"},"html":{"href":"https://github.com/TasukuNakano/ruboty-can_i_borrow/pull/1#discussion_r42104619"},"pull_request":{"href":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/pulls/1","id":47553504,"html_url":"https://github.com/TasukuNakano/ruboty-can_i_borrow/pull/1","diff_url":"https://github.com/TasukuNakano/ruboty-can_i_borrow/pull/1.diff","patch_url":"https://github.com/TasukuNakano/ruboty-can_i_borrow/pull/1.patch","issue_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/issues/1","number":1,"state":"closed","locked":false,"title":"List books feature","user":{"login":"TasukuNakano","id":1913131,"avatar_url":"https://avatars.githubusercontent.com/u/1913131?v=3","gravatar_id":"","url":"https://api.github.com/users/TasukuNakano","html_url":"https://github.com/TasukuNakano","followers_url":"https://api.github.com/users/TasukuNakano/followers","following_url":"https://api.github.com/users/TasukuNakano/following{/other_user}","gists_url":"https://api.github.com/users/TasukuNakano/gists{/gist_id}","starred_url":"https://api.github.com/users/TasukuNakano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TasukuNakano/subscriptions","organizations_url":"https://api.github.com/users/TasukuNakano/orgs","repos_url":"https://api.github.com/users/TasukuNakano/repos","events_url":"https://api.github.com/users/TasukuNakano/events{/privacy}","received_events_url":"https://api.github.com/users/TasukuNakano/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-13T16:05:15Z","updated_at":"2015-10-15T10:06:58Z","closed_at":"2015-10-13T16:05:21Z","merged_at":"2015-10-13T16:05:21Z","merge_commit_sha":"c0c47cfddb49c065d01ccd00761f06e1539b028a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/pulls/1/commits","review_comments_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/pulls/1/comments","review_comment_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/issues/1/comments","statuses_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/statuses/527e4a3d9ae0f5bc26cd5feabd79bb6623002307","head":{"label":"TasukuNakano:list-books-feature","ref":"list-books-feature","sha":"527e4a3d9ae0f5bc26cd5feabd79bb6623002307","user":{"login":"TasukuNakano","id":1913131,"avatar_url":"https://avatars.githubusercontent.com/u/1913131?v=3","gravatar_id":"","url":"https://api.github.com/users/TasukuNakano","html_url":"https://github.com/TasukuNakano","followers_url":"https://api.github.com/users/TasukuNakano/followers","following_url":"https://api.github.com/users/TasukuNakano/following{/other_user}","gists_url":"https://api.github.com/users/TasukuNakano/gists{/gist_id}","starred_url":"https://api.github.com/users/TasukuNakano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TasukuNakano/subscriptions","organizations_url":"https://api.github.com/users/TasukuNakano/orgs","repos_url":"https://api.github.com/users/TasukuNakano/repos","events_url":"https://api.github.com/users/TasukuNakano/events{/privacy}","received_events_url":"https://api.github.com/users/TasukuNakano/received_events","type":"User","site_admin":false},"repo":{"id":43862037,"name":"ruboty-can_i_borrow","full_name":"TasukuNakano/ruboty-can_i_borrow","owner":{"login":"TasukuNakano","id":1913131,"avatar_url":"https://avatars.githubusercontent.com/u/1913131?v=3","gravatar_id":"","url":"https://api.github.com/users/TasukuNakano","html_url":"https://github.com/TasukuNakano","followers_url":"https://api.github.com/users/TasukuNakano/followers","following_url":"https://api.github.com/users/TasukuNakano/following{/other_user}","gists_url":"https://api.github.com/users/TasukuNakano/gists{/gist_id}","starred_url":"https://api.github.com/users/TasukuNakano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TasukuNakano/subscriptions","organizations_url":"https://api.github.com/users/TasukuNakano/orgs","repos_url":"https://api.github.com/users/TasukuNakano/repos","events_url":"https://api.github.com/users/TasukuNakano/events{/privacy}","received_events_url":"https://api.github.com/users/TasukuNakano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TasukuNakano/ruboty-can_i_borrow","description":null,"fork":true,"url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow","forks_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/forks","keys_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/teams","hooks_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/hooks","issue_events_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/issues/events{/number}","events_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/events","assignees_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/assignees{/user}","branches_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/branches{/branch}","tags_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/tags","blobs_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/git/refs{/sha}","trees_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/statuses/{sha}","languages_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/languages","stargazers_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/stargazers","contributors_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/contributors","subscribers_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/subscribers","subscription_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/subscription","commits_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/commits{/sha}","git_commits_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/git/commits{/sha}","comments_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/comments{/number}","issue_comment_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/issues/comments{/number}","contents_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/contents/{+path}","compare_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/merges","archive_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/downloads","issues_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/issues{/number}","pulls_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/pulls{/number}","milestones_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/milestones{/number}","notifications_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/labels{/name}","releases_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/releases{/id}","created_at":"2015-10-08T04:05:54Z","updated_at":"2015-10-08T04:05:55Z","pushed_at":"2015-10-13T16:05:21Z","git_url":"git://github.com/TasukuNakano/ruboty-can_i_borrow.git","ssh_url":"git@github.com:TasukuNakano/ruboty-can_i_borrow.git","clone_url":"https://github.com/TasukuNakano/ruboty-can_i_borrow.git","svn_url":"https://github.com/TasukuNakano/ruboty-can_i_borrow","homepage":null,"size":123,"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":"TasukuNakano:master","ref":"master","sha":"fbed89036620e44f8fbb1c9c4b72811fbbca8042","user":{"login":"TasukuNakano","id":1913131,"avatar_url":"https://avatars.githubusercontent.com/u/1913131?v=3","gravatar_id":"","url":"https://api.github.com/users/TasukuNakano","html_url":"https://github.com/TasukuNakano","followers_url":"https://api.github.com/users/TasukuNakano/followers","following_url":"https://api.github.com/users/TasukuNakano/following{/other_user}","gists_url":"https://api.github.com/users/TasukuNakano/gists{/gist_id}","starred_url":"https://api.github.com/users/TasukuNakano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TasukuNakano/subscriptions","organizations_url":"https://api.github.com/users/TasukuNakano/orgs","repos_url":"https://api.github.com/users/TasukuNakano/repos","events_url":"https://api.github.com/users/TasukuNakano/events{/privacy}","received_events_url":"https://api.github.com/users/TasukuNakano/received_events","type":"User","site_admin":false},"repo":{"id":43862037,"name":"ruboty-can_i_borrow","full_name":"TasukuNakano/ruboty-can_i_borrow","owner":{"login":"TasukuNakano","id":1913131,"avatar_url":"https://avatars.githubusercontent.com/u/1913131?v=3","gravatar_id":"","url":"https://api.github.com/users/TasukuNakano","html_url":"https://github.com/TasukuNakano","followers_url":"https://api.github.com/users/TasukuNakano/followers","following_url":"https://api.github.com/users/TasukuNakano/following{/other_user}","gists_url":"https://api.github.com/users/TasukuNakano/gists{/gist_id}","starred_url":"https://api.github.com/users/TasukuNakano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TasukuNakano/subscriptions","organizations_url":"https://api.github.com/users/TasukuNakano/orgs","repos_url":"https://api.github.com/users/TasukuNakano/repos","events_url":"https://api.github.com/users/TasukuNakano/events{/privacy}","received_events_url":"https://api.github.com/users/TasukuNakano/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TasukuNakano/ruboty-can_i_borrow","description":null,"fork":true,"url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow","forks_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/forks","keys_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/teams","hooks_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/hooks","issue_events_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/issues/events{/number}","events_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/events","assignees_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/assignees{/user}","branches_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/branches{/branch}","tags_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/tags","blobs_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/git/refs{/sha}","trees_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/statuses/{sha}","languages_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/languages","stargazers_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/stargazers","contributors_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/contributors","subscribers_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/subscribers","subscription_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/subscription","commits_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/commits{/sha}","git_commits_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/git/commits{/sha}","comments_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/comments{/number}","issue_comment_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/issues/comments{/number}","contents_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/contents/{+path}","compare_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/merges","archive_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/downloads","issues_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/issues{/number}","pulls_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/pulls{/number}","milestones_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/milestones{/number}","notifications_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/labels{/name}","releases_url":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/releases{/id}","created_at":"2015-10-08T04:05:54Z","updated_at":"2015-10-08T04:05:55Z","pushed_at":"2015-10-13T16:05:21Z","git_url":"git://github.com/TasukuNakano/ruboty-can_i_borrow.git","ssh_url":"git@github.com:TasukuNakano/ruboty-can_i_borrow.git","clone_url":"https://github.com/TasukuNakano/ruboty-can_i_borrow.git","svn_url":"https://github.com/TasukuNakano/ruboty-can_i_borrow","homepage":null,"size":123,"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"}},"_links":{"self":{"href":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/pulls/1"},"html":{"href":"https://github.com/TasukuNakano/ruboty-can_i_borrow/pull/1"},"issue":{"href":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/issues/1"},"comments":{"href":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/TasukuNakano/ruboty-can_i_borrow/statuses/527e4a3d9ae0f5bc26cd5feabd79bb6623002307"}}}}