{"action":"created","comment":{"url":"https://api.github.com/repos/kmeir100/WeEat/pulls/comments/233483063","pull_request_review_id":174905860,"id":233483063,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzQ4MzA2Mw==","diff_hunk":"@@ -14,4 +18,56 @@ def set_rating!\n     update!(rating: total_rate)\n   end\n \n+\n+  def self.get_restaurants_from_zomato\n+\n+    uri = URI.parse('https://developers.zomato.com/api/v2.1/search?entity_id=280&entity_type=city')\n+    http = Net::HTTP.new(uri.host, uri.port)\n+    http.use_ssl = true\n+    http.verify_mode = OpenSSL::SSL::VERIFY_NONE # You should use VERIFY_PEER in production\n+    request = Net::HTTP::Get.new(uri.request_uri)\n+    request['user-key'] = '26e442c3bc4472de67b4c5e33beb28be'\n+\n+    res = http.request(request)\n+\n+    hash = JSON.parse(res.body)","path":"app/models/restaurant.rb","position":32,"original_position":32,"commit_id":"d9e2d6a56389d3d69f96a2735ddfadfa42d91aa3","original_commit_id":"d9e2d6a56389d3d69f96a2735ddfadfa42d91aa3","user":{"login":"ronits-wework","id":32036448,"node_id":"MDQ6VXNlcjMyMDM2NDQ4","avatar_url":"https://avatars3.githubusercontent.com/u/32036448?v=4","gravatar_id":"","url":"https://api.github.com/users/ronits-wework","html_url":"https://github.com/ronits-wework","followers_url":"https://api.github.com/users/ronits-wework/followers","following_url":"https://api.github.com/users/ronits-wework/following{/other_user}","gists_url":"https://api.github.com/users/ronits-wework/gists{/gist_id}","starred_url":"https://api.github.com/users/ronits-wework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronits-wework/subscriptions","organizations_url":"https://api.github.com/users/ronits-wework/orgs","repos_url":"https://api.github.com/users/ronits-wework/repos","events_url":"https://api.github.com/users/ronits-wework/events{/privacy}","received_events_url":"https://api.github.com/users/ronits-wework/received_events","type":"User","site_admin":false},"body":"add error handling - what if the request fails?","created_at":"2018-11-14T15:03:58Z","updated_at":"2018-11-14T15:03:58Z","html_url":"https://github.com/kmeir100/WeEat/pull/3#discussion_r233483063","pull_request_url":"https://api.github.com/repos/kmeir100/WeEat/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/kmeir100/WeEat/pulls/comments/233483063"},"html":{"href":"https://github.com/kmeir100/WeEat/pull/3#discussion_r233483063"},"pull_request":{"href":"https://api.github.com/repos/kmeir100/WeEat/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/kmeir100/WeEat/pulls/3","id":230807144,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwODA3MTQ0","html_url":"https://github.com/kmeir100/WeEat/pull/3","diff_url":"https://github.com/kmeir100/WeEat/pull/3.diff","patch_url":"https://github.com/kmeir100/WeEat/pull/3.patch","issue_url":"https://api.github.com/repos/kmeir100/WeEat/issues/3","number":3,"state":"open","locked":false,"title":"Frontend 1","user":{"login":"kmeir100","id":43960147,"node_id":"MDQ6VXNlcjQzOTYwMTQ3","avatar_url":"https://avatars0.githubusercontent.com/u/43960147?v=4","gravatar_id":"","url":"https://api.github.com/users/kmeir100","html_url":"https://github.com/kmeir100","followers_url":"https://api.github.com/users/kmeir100/followers","following_url":"https://api.github.com/users/kmeir100/following{/other_user}","gists_url":"https://api.github.com/users/kmeir100/gists{/gist_id}","starred_url":"https://api.github.com/users/kmeir100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmeir100/subscriptions","organizations_url":"https://api.github.com/users/kmeir100/orgs","repos_url":"https://api.github.com/users/kmeir100/repos","events_url":"https://api.github.com/users/kmeir100/events{/privacy}","received_events_url":"https://api.github.com/users/kmeir100/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-14T11:49:55Z","updated_at":"2018-11-14T15:03:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c14d900c4e0c268f0976637f848e34f77839b1e6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kmeir100/WeEat/pulls/3/commits","review_comments_url":"https://api.github.com/repos/kmeir100/WeEat/pulls/3/comments","review_comment_url":"https://api.github.com/repos/kmeir100/WeEat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kmeir100/WeEat/issues/3/comments","statuses_url":"https://api.github.com/repos/kmeir100/WeEat/statuses/d9e2d6a56389d3d69f96a2735ddfadfa42d91aa3","head":{"label":"kmeir100:Frontend-1","ref":"Frontend-1","sha":"d9e2d6a56389d3d69f96a2735ddfadfa42d91aa3","user":{"login":"kmeir100","id":43960147,"node_id":"MDQ6VXNlcjQzOTYwMTQ3","avatar_url":"https://avatars0.githubusercontent.com/u/43960147?v=4","gravatar_id":"","url":"https://api.github.com/users/kmeir100","html_url":"https://github.com/kmeir100","followers_url":"https://api.github.com/users/kmeir100/followers","following_url":"https://api.github.com/users/kmeir100/following{/other_user}","gists_url":"https://api.github.com/users/kmeir100/gists{/gist_id}","starred_url":"https://api.github.com/users/kmeir100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmeir100/subscriptions","organizations_url":"https://api.github.com/users/kmeir100/orgs","repos_url":"https://api.github.com/users/kmeir100/repos","events_url":"https://api.github.com/users/kmeir100/events{/privacy}","received_events_url":"https://api.github.com/users/kmeir100/received_events","type":"User","site_admin":false},"repo":{"id":153577469,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM1Nzc0Njk=","name":"WeEat","full_name":"kmeir100/WeEat","private":false,"owner":{"login":"kmeir100","id":43960147,"node_id":"MDQ6VXNlcjQzOTYwMTQ3","avatar_url":"https://avatars0.githubusercontent.com/u/43960147?v=4","gravatar_id":"","url":"https://api.github.com/users/kmeir100","html_url":"https://github.com/kmeir100","followers_url":"https://api.github.com/users/kmeir100/followers","following_url":"https://api.github.com/users/kmeir100/following{/other_user}","gists_url":"https://api.github.com/users/kmeir100/gists{/gist_id}","starred_url":"https://api.github.com/users/kmeir100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmeir100/subscriptions","organizations_url":"https://api.github.com/users/kmeir100/orgs","repos_url":"https://api.github.com/users/kmeir100/repos","events_url":"https://api.github.com/users/kmeir100/events{/privacy}","received_events_url":"https://api.github.com/users/kmeir100/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kmeir100/WeEat","description":"Pet project","fork":false,"url":"https://api.github.com/repos/kmeir100/WeEat","forks_url":"https://api.github.com/repos/kmeir100/WeEat/forks","keys_url":"https://api.github.com/repos/kmeir100/WeEat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kmeir100/WeEat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kmeir100/WeEat/teams","hooks_url":"https://api.github.com/repos/kmeir100/WeEat/hooks","issue_events_url":"https://api.github.com/repos/kmeir100/WeEat/issues/events{/number}","events_url":"https://api.github.com/repos/kmeir100/WeEat/events","assignees_url":"https://api.github.com/repos/kmeir100/WeEat/assignees{/user}","branches_url":"https://api.github.com/repos/kmeir100/WeEat/branches{/branch}","tags_url":"https://api.github.com/repos/kmeir100/WeEat/tags","blobs_url":"https://api.github.com/repos/kmeir100/WeEat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kmeir100/WeEat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kmeir100/WeEat/git/refs{/sha}","trees_url":"https://api.github.com/repos/kmeir100/WeEat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kmeir100/WeEat/statuses/{sha}","languages_url":"https://api.github.com/repos/kmeir100/WeEat/languages","stargazers_url":"https://api.github.com/repos/kmeir100/WeEat/stargazers","contributors_url":"https://api.github.com/repos/kmeir100/WeEat/contributors","subscribers_url":"https://api.github.com/repos/kmeir100/WeEat/subscribers","subscription_url":"https://api.github.com/repos/kmeir100/WeEat/subscription","commits_url":"https://api.github.com/repos/kmeir100/WeEat/commits{/sha}","git_commits_url":"https://api.github.com/repos/kmeir100/WeEat/git/commits{/sha}","comments_url":"https://api.github.com/repos/kmeir100/WeEat/comments{/number}","issue_comment_url":"https://api.github.com/repos/kmeir100/WeEat/issues/comments{/number}","contents_url":"https://api.github.com/repos/kmeir100/WeEat/contents/{+path}","compare_url":"https://api.github.com/repos/kmeir100/WeEat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kmeir100/WeEat/merges","archive_url":"https://api.github.com/repos/kmeir100/WeEat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kmeir100/WeEat/downloads","issues_url":"https://api.github.com/repos/kmeir100/WeEat/issues{/number}","pulls_url":"https://api.github.com/repos/kmeir100/WeEat/pulls{/number}","milestones_url":"https://api.github.com/repos/kmeir100/WeEat/milestones{/number}","notifications_url":"https://api.github.com/repos/kmeir100/WeEat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kmeir100/WeEat/labels{/name}","releases_url":"https://api.github.com/repos/kmeir100/WeEat/releases{/id}","deployments_url":"https://api.github.com/repos/kmeir100/WeEat/deployments","created_at":"2018-10-18T06:56:07Z","updated_at":"2018-11-14T13:06:11Z","pushed_at":"2018-11-14T15:00:57Z","git_url":"git://github.com/kmeir100/WeEat.git","ssh_url":"git@github.com:kmeir100/WeEat.git","clone_url":"https://github.com/kmeir100/WeEat.git","svn_url":"https://github.com/kmeir100/WeEat","homepage":null,"size":928,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"kmeir100:master","ref":"master","sha":"f7dcd61cf08c57c88aa7c27bb37695d2674a3411","user":{"login":"kmeir100","id":43960147,"node_id":"MDQ6VXNlcjQzOTYwMTQ3","avatar_url":"https://avatars0.githubusercontent.com/u/43960147?v=4","gravatar_id":"","url":"https://api.github.com/users/kmeir100","html_url":"https://github.com/kmeir100","followers_url":"https://api.github.com/users/kmeir100/followers","following_url":"https://api.github.com/users/kmeir100/following{/other_user}","gists_url":"https://api.github.com/users/kmeir100/gists{/gist_id}","starred_url":"https://api.github.com/users/kmeir100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmeir100/subscriptions","organizations_url":"https://api.github.com/users/kmeir100/orgs","repos_url":"https://api.github.com/users/kmeir100/repos","events_url":"https://api.github.com/users/kmeir100/events{/privacy}","received_events_url":"https://api.github.com/users/kmeir100/received_events","type":"User","site_admin":false},"repo":{"id":153577469,"node_id":"MDEwOlJlcG9zaXRvcnkxNTM1Nzc0Njk=","name":"WeEat","full_name":"kmeir100/WeEat","private":false,"owner":{"login":"kmeir100","id":43960147,"node_id":"MDQ6VXNlcjQzOTYwMTQ3","avatar_url":"https://avatars0.githubusercontent.com/u/43960147?v=4","gravatar_id":"","url":"https://api.github.com/users/kmeir100","html_url":"https://github.com/kmeir100","followers_url":"https://api.github.com/users/kmeir100/followers","following_url":"https://api.github.com/users/kmeir100/following{/other_user}","gists_url":"https://api.github.com/users/kmeir100/gists{/gist_id}","starred_url":"https://api.github.com/users/kmeir100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmeir100/subscriptions","organizations_url":"https://api.github.com/users/kmeir100/orgs","repos_url":"https://api.github.com/users/kmeir100/repos","events_url":"https://api.github.com/users/kmeir100/events{/privacy}","received_events_url":"https://api.github.com/users/kmeir100/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kmeir100/WeEat","description":"Pet project","fork":false,"url":"https://api.github.com/repos/kmeir100/WeEat","forks_url":"https://api.github.com/repos/kmeir100/WeEat/forks","keys_url":"https://api.github.com/repos/kmeir100/WeEat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kmeir100/WeEat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kmeir100/WeEat/teams","hooks_url":"https://api.github.com/repos/kmeir100/WeEat/hooks","issue_events_url":"https://api.github.com/repos/kmeir100/WeEat/issues/events{/number}","events_url":"https://api.github.com/repos/kmeir100/WeEat/events","assignees_url":"https://api.github.com/repos/kmeir100/WeEat/assignees{/user}","branches_url":"https://api.github.com/repos/kmeir100/WeEat/branches{/branch}","tags_url":"https://api.github.com/repos/kmeir100/WeEat/tags","blobs_url":"https://api.github.com/repos/kmeir100/WeEat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kmeir100/WeEat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kmeir100/WeEat/git/refs{/sha}","trees_url":"https://api.github.com/repos/kmeir100/WeEat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kmeir100/WeEat/statuses/{sha}","languages_url":"https://api.github.com/repos/kmeir100/WeEat/languages","stargazers_url":"https://api.github.com/repos/kmeir100/WeEat/stargazers","contributors_url":"https://api.github.com/repos/kmeir100/WeEat/contributors","subscribers_url":"https://api.github.com/repos/kmeir100/WeEat/subscribers","subscription_url":"https://api.github.com/repos/kmeir100/WeEat/subscription","commits_url":"https://api.github.com/repos/kmeir100/WeEat/commits{/sha}","git_commits_url":"https://api.github.com/repos/kmeir100/WeEat/git/commits{/sha}","comments_url":"https://api.github.com/repos/kmeir100/WeEat/comments{/number}","issue_comment_url":"https://api.github.com/repos/kmeir100/WeEat/issues/comments{/number}","contents_url":"https://api.github.com/repos/kmeir100/WeEat/contents/{+path}","compare_url":"https://api.github.com/repos/kmeir100/WeEat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kmeir100/WeEat/merges","archive_url":"https://api.github.com/repos/kmeir100/WeEat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kmeir100/WeEat/downloads","issues_url":"https://api.github.com/repos/kmeir100/WeEat/issues{/number}","pulls_url":"https://api.github.com/repos/kmeir100/WeEat/pulls{/number}","milestones_url":"https://api.github.com/repos/kmeir100/WeEat/milestones{/number}","notifications_url":"https://api.github.com/repos/kmeir100/WeEat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kmeir100/WeEat/labels{/name}","releases_url":"https://api.github.com/repos/kmeir100/WeEat/releases{/id}","deployments_url":"https://api.github.com/repos/kmeir100/WeEat/deployments","created_at":"2018-10-18T06:56:07Z","updated_at":"2018-11-14T13:06:11Z","pushed_at":"2018-11-14T15:00:57Z","git_url":"git://github.com/kmeir100/WeEat.git","ssh_url":"git@github.com:kmeir100/WeEat.git","clone_url":"https://github.com/kmeir100/WeEat.git","svn_url":"https://github.com/kmeir100/WeEat","homepage":null,"size":928,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kmeir100/WeEat/pulls/3"},"html":{"href":"https://github.com/kmeir100/WeEat/pull/3"},"issue":{"href":"https://api.github.com/repos/kmeir100/WeEat/issues/3"},"comments":{"href":"https://api.github.com/repos/kmeir100/WeEat/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/kmeir100/WeEat/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/kmeir100/WeEat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kmeir100/WeEat/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/kmeir100/WeEat/statuses/d9e2d6a56389d3d69f96a2735ddfadfa42d91aa3"}},"author_association":"OWNER"}}
{"actor":{"display_login":"ronits-wework"}}