{"action":"created","comment":{"url":"https://api.github.com/repos/wolox-training/cy-rails/pulls/comments/232400870","pull_request_review_id":173599216,"id":232400870,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjQwMDg3MA==","diff_hunk":"@@ -0,0 +1,50 @@\n+require 'httparty'\n+module OpenLibraryService\n+  include HTTParty\n+  def book_info(isbn)\n+    base_uri = \"https://openlibrary.org/api/books?bibkeys=ISBN:#{isbn}&format=json&jscmd=data\"\n+    response = HTTParty.get(base_uri, format: :json)\n+    valid_isbn(response)\n+  end\n+\n+  private\n+\n+  def valid_isbn(response)\n+    if response.keys.any?\n+      hash_info_book(response)\n+    else\n+      []\n+    end\n+  end\n+\n+  def hash_info_book(response)","path":"app/services/open_library_service.rb","position":20,"original_position":20,"commit_id":"f08b1d845f6adf00679f14bbfc750b68f55d80cc","original_commit_id":"f08b1d845f6adf00679f14bbfc750b68f55d80cc","user":{"login":"mtejedorwolox","id":26874630,"node_id":"MDQ6VXNlcjI2ODc0NjMw","avatar_url":"https://avatars3.githubusercontent.com/u/26874630?v=4","gravatar_id":"","url":"https://api.github.com/users/mtejedorwolox","html_url":"https://github.com/mtejedorwolox","followers_url":"https://api.github.com/users/mtejedorwolox/followers","following_url":"https://api.github.com/users/mtejedorwolox/following{/other_user}","gists_url":"https://api.github.com/users/mtejedorwolox/gists{/gist_id}","starred_url":"https://api.github.com/users/mtejedorwolox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtejedorwolox/subscriptions","organizations_url":"https://api.github.com/users/mtejedorwolox/orgs","repos_url":"https://api.github.com/users/mtejedorwolox/repos","events_url":"https://api.github.com/users/mtejedorwolox/events{/privacy}","received_events_url":"https://api.github.com/users/mtejedorwolox/received_events","type":"User","site_admin":false},"body":"```suggestion\r\n  def hash_info_book(response, isbn)\r\n```","created_at":"2018-11-09T21:35:57Z","updated_at":"2018-11-09T21:39:10Z","html_url":"https://github.com/wolox-training/cy-rails/pull/17#discussion_r232400870","pull_request_url":"https://api.github.com/repos/wolox-training/cy-rails/pulls/17","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/wolox-training/cy-rails/pulls/comments/232400870"},"html":{"href":"https://github.com/wolox-training/cy-rails/pull/17#discussion_r232400870"},"pull_request":{"href":"https://api.github.com/repos/wolox-training/cy-rails/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/wolox-training/cy-rails/pulls/17","id":229437052,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5NDM3MDUy","html_url":"https://github.com/wolox-training/cy-rails/pull/17","diff_url":"https://github.com/wolox-training/cy-rails/pull/17.diff","patch_url":"https://github.com/wolox-training/cy-rails/pull/17.patch","issue_url":"https://api.github.com/repos/wolox-training/cy-rails/issues/17","number":17,"state":"open","locked":false,"title":"integration api external open library services","user":{"login":"yanzacd","id":43754324,"node_id":"MDQ6VXNlcjQzNzU0MzI0","avatar_url":"https://avatars0.githubusercontent.com/u/43754324?v=4","gravatar_id":"","url":"https://api.github.com/users/yanzacd","html_url":"https://github.com/yanzacd","followers_url":"https://api.github.com/users/yanzacd/followers","following_url":"https://api.github.com/users/yanzacd/following{/other_user}","gists_url":"https://api.github.com/users/yanzacd/gists{/gist_id}","starred_url":"https://api.github.com/users/yanzacd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanzacd/subscriptions","organizations_url":"https://api.github.com/users/yanzacd/orgs","repos_url":"https://api.github.com/users/yanzacd/repos","events_url":"https://api.github.com/users/yanzacd/events{/privacy}","received_events_url":"https://api.github.com/users/yanzacd/received_events","type":"User","site_admin":false},"body":"## Summary\r\n\r\nIntegration of api external with set books\r\n\r\n## Trello Card\r\n\r\nhttps://trello.com/c/OPZqcGiz/36-integración-api-externa\r\n","created_at":"2018-11-08T16:51:54Z","updated_at":"2018-11-09T21:39:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a8a3c83085e7450ec665ae28b4cbef740b26ad6d","assignee":{"login":"ziflit","id":8497073,"node_id":"MDQ6VXNlcjg0OTcwNzM=","avatar_url":"https://avatars2.githubusercontent.com/u/8497073?v=4","gravatar_id":"","url":"https://api.github.com/users/ziflit","html_url":"https://github.com/ziflit","followers_url":"https://api.github.com/users/ziflit/followers","following_url":"https://api.github.com/users/ziflit/following{/other_user}","gists_url":"https://api.github.com/users/ziflit/gists{/gist_id}","starred_url":"https://api.github.com/users/ziflit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziflit/subscriptions","organizations_url":"https://api.github.com/users/ziflit/orgs","repos_url":"https://api.github.com/users/ziflit/repos","events_url":"https://api.github.com/users/ziflit/events{/privacy}","received_events_url":"https://api.github.com/users/ziflit/received_events","type":"User","site_admin":false},"assignees":[{"login":"ziflit","id":8497073,"node_id":"MDQ6VXNlcjg0OTcwNzM=","avatar_url":"https://avatars2.githubusercontent.com/u/8497073?v=4","gravatar_id":"","url":"https://api.github.com/users/ziflit","html_url":"https://github.com/ziflit","followers_url":"https://api.github.com/users/ziflit/followers","following_url":"https://api.github.com/users/ziflit/following{/other_user}","gists_url":"https://api.github.com/users/ziflit/gists{/gist_id}","starred_url":"https://api.github.com/users/ziflit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziflit/subscriptions","organizations_url":"https://api.github.com/users/ziflit/orgs","repos_url":"https://api.github.com/users/ziflit/repos","events_url":"https://api.github.com/users/ziflit/events{/privacy}","received_events_url":"https://api.github.com/users/ziflit/received_events","type":"User","site_admin":false},{"login":"mtejedorwolox","id":26874630,"node_id":"MDQ6VXNlcjI2ODc0NjMw","avatar_url":"https://avatars3.githubusercontent.com/u/26874630?v=4","gravatar_id":"","url":"https://api.github.com/users/mtejedorwolox","html_url":"https://github.com/mtejedorwolox","followers_url":"https://api.github.com/users/mtejedorwolox/followers","following_url":"https://api.github.com/users/mtejedorwolox/following{/other_user}","gists_url":"https://api.github.com/users/mtejedorwolox/gists{/gist_id}","starred_url":"https://api.github.com/users/mtejedorwolox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtejedorwolox/subscriptions","organizations_url":"https://api.github.com/users/mtejedorwolox/orgs","repos_url":"https://api.github.com/users/mtejedorwolox/repos","events_url":"https://api.github.com/users/mtejedorwolox/events{/privacy}","received_events_url":"https://api.github.com/users/mtejedorwolox/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"ziflit","id":8497073,"node_id":"MDQ6VXNlcjg0OTcwNzM=","avatar_url":"https://avatars2.githubusercontent.com/u/8497073?v=4","gravatar_id":"","url":"https://api.github.com/users/ziflit","html_url":"https://github.com/ziflit","followers_url":"https://api.github.com/users/ziflit/followers","following_url":"https://api.github.com/users/ziflit/following{/other_user}","gists_url":"https://api.github.com/users/ziflit/gists{/gist_id}","starred_url":"https://api.github.com/users/ziflit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ziflit/subscriptions","organizations_url":"https://api.github.com/users/ziflit/orgs","repos_url":"https://api.github.com/users/ziflit/repos","events_url":"https://api.github.com/users/ziflit/events{/privacy}","received_events_url":"https://api.github.com/users/ziflit/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wolox-training/cy-rails/pulls/17/commits","review_comments_url":"https://api.github.com/repos/wolox-training/cy-rails/pulls/17/comments","review_comment_url":"https://api.github.com/repos/wolox-training/cy-rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wolox-training/cy-rails/issues/17/comments","statuses_url":"https://api.github.com/repos/wolox-training/cy-rails/statuses/f08b1d845f6adf00679f14bbfc750b68f55d80cc","head":{"label":"wolox-training:integrationApiExternal","ref":"integrationApiExternal","sha":"f08b1d845f6adf00679f14bbfc750b68f55d80cc","user":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"repo":{"id":150797444,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA3OTc0NDQ=","name":"cy-rails","full_name":"wolox-training/cy-rails","private":false,"owner":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/wolox-training/cy-rails","description":null,"fork":false,"url":"https://api.github.com/repos/wolox-training/cy-rails","forks_url":"https://api.github.com/repos/wolox-training/cy-rails/forks","keys_url":"https://api.github.com/repos/wolox-training/cy-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wolox-training/cy-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wolox-training/cy-rails/teams","hooks_url":"https://api.github.com/repos/wolox-training/cy-rails/hooks","issue_events_url":"https://api.github.com/repos/wolox-training/cy-rails/issues/events{/number}","events_url":"https://api.github.com/repos/wolox-training/cy-rails/events","assignees_url":"https://api.github.com/repos/wolox-training/cy-rails/assignees{/user}","branches_url":"https://api.github.com/repos/wolox-training/cy-rails/branches{/branch}","tags_url":"https://api.github.com/repos/wolox-training/cy-rails/tags","blobs_url":"https://api.github.com/repos/wolox-training/cy-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wolox-training/cy-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wolox-training/cy-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/wolox-training/cy-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wolox-training/cy-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/wolox-training/cy-rails/languages","stargazers_url":"https://api.github.com/repos/wolox-training/cy-rails/stargazers","contributors_url":"https://api.github.com/repos/wolox-training/cy-rails/contributors","subscribers_url":"https://api.github.com/repos/wolox-training/cy-rails/subscribers","subscription_url":"https://api.github.com/repos/wolox-training/cy-rails/subscription","commits_url":"https://api.github.com/repos/wolox-training/cy-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/wolox-training/cy-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/wolox-training/cy-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/wolox-training/cy-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/wolox-training/cy-rails/contents/{+path}","compare_url":"https://api.github.com/repos/wolox-training/cy-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wolox-training/cy-rails/merges","archive_url":"https://api.github.com/repos/wolox-training/cy-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wolox-training/cy-rails/downloads","issues_url":"https://api.github.com/repos/wolox-training/cy-rails/issues{/number}","pulls_url":"https://api.github.com/repos/wolox-training/cy-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/wolox-training/cy-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/wolox-training/cy-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wolox-training/cy-rails/labels{/name}","releases_url":"https://api.github.com/repos/wolox-training/cy-rails/releases{/id}","deployments_url":"https://api.github.com/repos/wolox-training/cy-rails/deployments","created_at":"2018-09-28T21:43:08Z","updated_at":"2018-11-09T21:15:15Z","pushed_at":"2018-11-09T21:26:36Z","git_url":"git://github.com/wolox-training/cy-rails.git","ssh_url":"git@github.com:wolox-training/cy-rails.git","clone_url":"https://github.com/wolox-training/cy-rails.git","svn_url":"https://github.com/wolox-training/cy-rails","homepage":null,"size":141,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"wolox-training:master","ref":"master","sha":"cdfe8ca8e2f79beab3ef02b92afb33ecef828bf2","user":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"repo":{"id":150797444,"node_id":"MDEwOlJlcG9zaXRvcnkxNTA3OTc0NDQ=","name":"cy-rails","full_name":"wolox-training/cy-rails","private":false,"owner":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/wolox-training/cy-rails","description":null,"fork":false,"url":"https://api.github.com/repos/wolox-training/cy-rails","forks_url":"https://api.github.com/repos/wolox-training/cy-rails/forks","keys_url":"https://api.github.com/repos/wolox-training/cy-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wolox-training/cy-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wolox-training/cy-rails/teams","hooks_url":"https://api.github.com/repos/wolox-training/cy-rails/hooks","issue_events_url":"https://api.github.com/repos/wolox-training/cy-rails/issues/events{/number}","events_url":"https://api.github.com/repos/wolox-training/cy-rails/events","assignees_url":"https://api.github.com/repos/wolox-training/cy-rails/assignees{/user}","branches_url":"https://api.github.com/repos/wolox-training/cy-rails/branches{/branch}","tags_url":"https://api.github.com/repos/wolox-training/cy-rails/tags","blobs_url":"https://api.github.com/repos/wolox-training/cy-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wolox-training/cy-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wolox-training/cy-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/wolox-training/cy-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wolox-training/cy-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/wolox-training/cy-rails/languages","stargazers_url":"https://api.github.com/repos/wolox-training/cy-rails/stargazers","contributors_url":"https://api.github.com/repos/wolox-training/cy-rails/contributors","subscribers_url":"https://api.github.com/repos/wolox-training/cy-rails/subscribers","subscription_url":"https://api.github.com/repos/wolox-training/cy-rails/subscription","commits_url":"https://api.github.com/repos/wolox-training/cy-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/wolox-training/cy-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/wolox-training/cy-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/wolox-training/cy-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/wolox-training/cy-rails/contents/{+path}","compare_url":"https://api.github.com/repos/wolox-training/cy-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wolox-training/cy-rails/merges","archive_url":"https://api.github.com/repos/wolox-training/cy-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wolox-training/cy-rails/downloads","issues_url":"https://api.github.com/repos/wolox-training/cy-rails/issues{/number}","pulls_url":"https://api.github.com/repos/wolox-training/cy-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/wolox-training/cy-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/wolox-training/cy-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wolox-training/cy-rails/labels{/name}","releases_url":"https://api.github.com/repos/wolox-training/cy-rails/releases{/id}","deployments_url":"https://api.github.com/repos/wolox-training/cy-rails/deployments","created_at":"2018-09-28T21:43:08Z","updated_at":"2018-11-09T21:15:15Z","pushed_at":"2018-11-09T21:26:36Z","git_url":"git://github.com/wolox-training/cy-rails.git","ssh_url":"git@github.com:wolox-training/cy-rails.git","clone_url":"https://github.com/wolox-training/cy-rails.git","svn_url":"https://github.com/wolox-training/cy-rails","homepage":null,"size":141,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wolox-training/cy-rails/pulls/17"},"html":{"href":"https://github.com/wolox-training/cy-rails/pull/17"},"issue":{"href":"https://api.github.com/repos/wolox-training/cy-rails/issues/17"},"comments":{"href":"https://api.github.com/repos/wolox-training/cy-rails/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/wolox-training/cy-rails/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/wolox-training/cy-rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wolox-training/cy-rails/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/wolox-training/cy-rails/statuses/f08b1d845f6adf00679f14bbfc750b68f55d80cc"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"mtejedorwolox"}}