{"action":"created","comment":{"url":"https://api.github.com/repos/gurgelrenan/genial/pulls/comments/42898374","id":42898374,"diff_hunk":"@@ -34,17 +33,18 @@ def self.parse_response(response)\n       response.parsed_response[\"buying_rate\"].to_f.round(2)\n     end\n \n-    def self.parse_convert_response(response)\n-        case response.code\n-          when 200\n-            response.parsed_response[\"result\"].to_f.round(2)\n-          when 404\n-            puts \"moeda(s) não encontrada(s)\"\n-          when 400\n-            puts \"solicitação inválida\"\n-          when 500\n-            puts \"erro interno.\"\n-          end\n+    def self.convert_response(response)\n+      case response.code\n+      when 200\n+        response.parsed_response[\"result\"].to_f.round(2)\n+      when 404\n+        puts \"moeda(s) não encontrada(s)\"","path":"lib/genial.rb","position":32,"original_position":32,"commit_id":"98539a38831cfbbc3d43239ea8a2e9b9bcb6a5e9","original_commit_id":"98539a38831cfbbc3d43239ea8a2e9b9bcb6a5e9","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Do not write to stdout. Use Rails' logger if you want to log.","created_at":"2015-10-23T18:30:45Z","updated_at":"2015-10-23T18:30:45Z","html_url":"https://github.com/gurgelrenan/genial/pull/2#discussion_r42898374","pull_request_url":"https://api.github.com/repos/gurgelrenan/genial/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/gurgelrenan/genial/pulls/comments/42898374"},"html":{"href":"https://github.com/gurgelrenan/genial/pull/2#discussion_r42898374"},"pull_request":{"href":"https://api.github.com/repos/gurgelrenan/genial/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/gurgelrenan/genial/pulls/2","id":48613792,"html_url":"https://github.com/gurgelrenan/genial/pull/2","diff_url":"https://github.com/gurgelrenan/genial/pull/2.diff","patch_url":"https://github.com/gurgelrenan/genial/pull/2.patch","issue_url":"https://api.github.com/repos/gurgelrenan/genial/issues/2","number":2,"state":"open","locked":false,"title":"fix lint errors","user":{"login":"vitormalencar","id":7741167,"avatar_url":"https://avatars.githubusercontent.com/u/7741167?v=3","gravatar_id":"","url":"https://api.github.com/users/vitormalencar","html_url":"https://github.com/vitormalencar","followers_url":"https://api.github.com/users/vitormalencar/followers","following_url":"https://api.github.com/users/vitormalencar/following{/other_user}","gists_url":"https://api.github.com/users/vitormalencar/gists{/gist_id}","starred_url":"https://api.github.com/users/vitormalencar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitormalencar/subscriptions","organizations_url":"https://api.github.com/users/vitormalencar/orgs","repos_url":"https://api.github.com/users/vitormalencar/repos","events_url":"https://api.github.com/users/vitormalencar/events{/privacy}","received_events_url":"https://api.github.com/users/vitormalencar/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-23T18:30:41Z","updated_at":"2015-10-23T18:30:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"207d094944bc9bfc3fe2a997d9dc707cf05ad8cf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gurgelrenan/genial/pulls/2/commits","review_comments_url":"https://api.github.com/repos/gurgelrenan/genial/pulls/2/comments","review_comment_url":"https://api.github.com/repos/gurgelrenan/genial/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gurgelrenan/genial/issues/2/comments","statuses_url":"https://api.github.com/repos/gurgelrenan/genial/statuses/98539a38831cfbbc3d43239ea8a2e9b9bcb6a5e9","head":{"label":"vitormalencar:documentation","ref":"documentation","sha":"98539a38831cfbbc3d43239ea8a2e9b9bcb6a5e9","user":{"login":"vitormalencar","id":7741167,"avatar_url":"https://avatars.githubusercontent.com/u/7741167?v=3","gravatar_id":"","url":"https://api.github.com/users/vitormalencar","html_url":"https://github.com/vitormalencar","followers_url":"https://api.github.com/users/vitormalencar/followers","following_url":"https://api.github.com/users/vitormalencar/following{/other_user}","gists_url":"https://api.github.com/users/vitormalencar/gists{/gist_id}","starred_url":"https://api.github.com/users/vitormalencar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitormalencar/subscriptions","organizations_url":"https://api.github.com/users/vitormalencar/orgs","repos_url":"https://api.github.com/users/vitormalencar/repos","events_url":"https://api.github.com/users/vitormalencar/events{/privacy}","received_events_url":"https://api.github.com/users/vitormalencar/received_events","type":"User","site_admin":false},"repo":{"id":44827351,"name":"genial","full_name":"vitormalencar/genial","owner":{"login":"vitormalencar","id":7741167,"avatar_url":"https://avatars.githubusercontent.com/u/7741167?v=3","gravatar_id":"","url":"https://api.github.com/users/vitormalencar","html_url":"https://github.com/vitormalencar","followers_url":"https://api.github.com/users/vitormalencar/followers","following_url":"https://api.github.com/users/vitormalencar/following{/other_user}","gists_url":"https://api.github.com/users/vitormalencar/gists{/gist_id}","starred_url":"https://api.github.com/users/vitormalencar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitormalencar/subscriptions","organizations_url":"https://api.github.com/users/vitormalencar/orgs","repos_url":"https://api.github.com/users/vitormalencar/repos","events_url":"https://api.github.com/users/vitormalencar/events{/privacy}","received_events_url":"https://api.github.com/users/vitormalencar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vitormalencar/genial","description":"Gem that shows the main currencies quotations","fork":true,"url":"https://api.github.com/repos/vitormalencar/genial","forks_url":"https://api.github.com/repos/vitormalencar/genial/forks","keys_url":"https://api.github.com/repos/vitormalencar/genial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vitormalencar/genial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vitormalencar/genial/teams","hooks_url":"https://api.github.com/repos/vitormalencar/genial/hooks","issue_events_url":"https://api.github.com/repos/vitormalencar/genial/issues/events{/number}","events_url":"https://api.github.com/repos/vitormalencar/genial/events","assignees_url":"https://api.github.com/repos/vitormalencar/genial/assignees{/user}","branches_url":"https://api.github.com/repos/vitormalencar/genial/branches{/branch}","tags_url":"https://api.github.com/repos/vitormalencar/genial/tags","blobs_url":"https://api.github.com/repos/vitormalencar/genial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vitormalencar/genial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vitormalencar/genial/git/refs{/sha}","trees_url":"https://api.github.com/repos/vitormalencar/genial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vitormalencar/genial/statuses/{sha}","languages_url":"https://api.github.com/repos/vitormalencar/genial/languages","stargazers_url":"https://api.github.com/repos/vitormalencar/genial/stargazers","contributors_url":"https://api.github.com/repos/vitormalencar/genial/contributors","subscribers_url":"https://api.github.com/repos/vitormalencar/genial/subscribers","subscription_url":"https://api.github.com/repos/vitormalencar/genial/subscription","commits_url":"https://api.github.com/repos/vitormalencar/genial/commits{/sha}","git_commits_url":"https://api.github.com/repos/vitormalencar/genial/git/commits{/sha}","comments_url":"https://api.github.com/repos/vitormalencar/genial/comments{/number}","issue_comment_url":"https://api.github.com/repos/vitormalencar/genial/issues/comments{/number}","contents_url":"https://api.github.com/repos/vitormalencar/genial/contents/{+path}","compare_url":"https://api.github.com/repos/vitormalencar/genial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vitormalencar/genial/merges","archive_url":"https://api.github.com/repos/vitormalencar/genial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vitormalencar/genial/downloads","issues_url":"https://api.github.com/repos/vitormalencar/genial/issues{/number}","pulls_url":"https://api.github.com/repos/vitormalencar/genial/pulls{/number}","milestones_url":"https://api.github.com/repos/vitormalencar/genial/milestones{/number}","notifications_url":"https://api.github.com/repos/vitormalencar/genial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vitormalencar/genial/labels{/name}","releases_url":"https://api.github.com/repos/vitormalencar/genial/releases{/id}","created_at":"2015-10-23T17:15:13Z","updated_at":"2015-10-23T17:15:17Z","pushed_at":"2015-10-23T18:29:54Z","git_url":"git://github.com/vitormalencar/genial.git","ssh_url":"git@github.com:vitormalencar/genial.git","clone_url":"https://github.com/vitormalencar/genial.git","svn_url":"https://github.com/vitormalencar/genial","homepage":"","size":168,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"gurgelrenan:master","ref":"master","sha":"4203ac8803c199a027d45bffab679faf0a7dbd44","user":{"login":"gurgelrenan","id":691159,"avatar_url":"https://avatars.githubusercontent.com/u/691159?v=3","gravatar_id":"","url":"https://api.github.com/users/gurgelrenan","html_url":"https://github.com/gurgelrenan","followers_url":"https://api.github.com/users/gurgelrenan/followers","following_url":"https://api.github.com/users/gurgelrenan/following{/other_user}","gists_url":"https://api.github.com/users/gurgelrenan/gists{/gist_id}","starred_url":"https://api.github.com/users/gurgelrenan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gurgelrenan/subscriptions","organizations_url":"https://api.github.com/users/gurgelrenan/orgs","repos_url":"https://api.github.com/users/gurgelrenan/repos","events_url":"https://api.github.com/users/gurgelrenan/events{/privacy}","received_events_url":"https://api.github.com/users/gurgelrenan/received_events","type":"User","site_admin":false},"repo":{"id":44324276,"name":"genial","full_name":"gurgelrenan/genial","owner":{"login":"gurgelrenan","id":691159,"avatar_url":"https://avatars.githubusercontent.com/u/691159?v=3","gravatar_id":"","url":"https://api.github.com/users/gurgelrenan","html_url":"https://github.com/gurgelrenan","followers_url":"https://api.github.com/users/gurgelrenan/followers","following_url":"https://api.github.com/users/gurgelrenan/following{/other_user}","gists_url":"https://api.github.com/users/gurgelrenan/gists{/gist_id}","starred_url":"https://api.github.com/users/gurgelrenan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gurgelrenan/subscriptions","organizations_url":"https://api.github.com/users/gurgelrenan/orgs","repos_url":"https://api.github.com/users/gurgelrenan/repos","events_url":"https://api.github.com/users/gurgelrenan/events{/privacy}","received_events_url":"https://api.github.com/users/gurgelrenan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gurgelrenan/genial","description":"Gem that shows the main currencies quotations","fork":false,"url":"https://api.github.com/repos/gurgelrenan/genial","forks_url":"https://api.github.com/repos/gurgelrenan/genial/forks","keys_url":"https://api.github.com/repos/gurgelrenan/genial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gurgelrenan/genial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gurgelrenan/genial/teams","hooks_url":"https://api.github.com/repos/gurgelrenan/genial/hooks","issue_events_url":"https://api.github.com/repos/gurgelrenan/genial/issues/events{/number}","events_url":"https://api.github.com/repos/gurgelrenan/genial/events","assignees_url":"https://api.github.com/repos/gurgelrenan/genial/assignees{/user}","branches_url":"https://api.github.com/repos/gurgelrenan/genial/branches{/branch}","tags_url":"https://api.github.com/repos/gurgelrenan/genial/tags","blobs_url":"https://api.github.com/repos/gurgelrenan/genial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gurgelrenan/genial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gurgelrenan/genial/git/refs{/sha}","trees_url":"https://api.github.com/repos/gurgelrenan/genial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gurgelrenan/genial/statuses/{sha}","languages_url":"https://api.github.com/repos/gurgelrenan/genial/languages","stargazers_url":"https://api.github.com/repos/gurgelrenan/genial/stargazers","contributors_url":"https://api.github.com/repos/gurgelrenan/genial/contributors","subscribers_url":"https://api.github.com/repos/gurgelrenan/genial/subscribers","subscription_url":"https://api.github.com/repos/gurgelrenan/genial/subscription","commits_url":"https://api.github.com/repos/gurgelrenan/genial/commits{/sha}","git_commits_url":"https://api.github.com/repos/gurgelrenan/genial/git/commits{/sha}","comments_url":"https://api.github.com/repos/gurgelrenan/genial/comments{/number}","issue_comment_url":"https://api.github.com/repos/gurgelrenan/genial/issues/comments{/number}","contents_url":"https://api.github.com/repos/gurgelrenan/genial/contents/{+path}","compare_url":"https://api.github.com/repos/gurgelrenan/genial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gurgelrenan/genial/merges","archive_url":"https://api.github.com/repos/gurgelrenan/genial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gurgelrenan/genial/downloads","issues_url":"https://api.github.com/repos/gurgelrenan/genial/issues{/number}","pulls_url":"https://api.github.com/repos/gurgelrenan/genial/pulls{/number}","milestones_url":"https://api.github.com/repos/gurgelrenan/genial/milestones{/number}","notifications_url":"https://api.github.com/repos/gurgelrenan/genial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gurgelrenan/genial/labels{/name}","releases_url":"https://api.github.com/repos/gurgelrenan/genial/releases{/id}","created_at":"2015-10-15T14:46:54Z","updated_at":"2015-10-16T01:14:47Z","pushed_at":"2015-10-23T18:30:41Z","git_url":"git://github.com/gurgelrenan/genial.git","ssh_url":"git@github.com:gurgelrenan/genial.git","clone_url":"https://github.com/gurgelrenan/genial.git","svn_url":"https://github.com/gurgelrenan/genial","homepage":"","size":168,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gurgelrenan/genial/pulls/2"},"html":{"href":"https://github.com/gurgelrenan/genial/pull/2"},"issue":{"href":"https://api.github.com/repos/gurgelrenan/genial/issues/2"},"comments":{"href":"https://api.github.com/repos/gurgelrenan/genial/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/gurgelrenan/genial/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/gurgelrenan/genial/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gurgelrenan/genial/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/gurgelrenan/genial/statuses/98539a38831cfbbc3d43239ea8a2e9b9bcb6a5e9"}}}}