{"action":"created","comment":{"url":"https://api.github.com/repos/zilverline/google-maps/pulls/comments/38521103","id":38521103,"diff_hunk":"@@ -17,21 +18,21 @@ def method_missing(name, *args, &block)\n           super\n         end\n       end\n-      \n+\n       def origin_latlong\n         \"#{self.start_location.lat},#{self.start_location.lng}\"\n       end\n-      \n+\n       def destination_latlong\n         \"#{self.end_location.lat},#{self.end_location.lng}\"\n       end\n-      \n+\n       private\n       def route\n         # default to the first returned route (the most efficient one)\n-        @response ||= API.query(:directions_service, :origin => from, :destination => to, :language => language).routes.first\n+        @response ||= API.query(:directions_service, @options.merge(origin: from, destination: to)).routes.first\n       end\n     end\n-    \n+","path":"lib/google-maps/route.rb","position":43,"original_position":43,"commit_id":"e84a0f27325c44bafc70c9f0266f353df6167313","original_commit_id":"e84a0f27325c44bafc70c9f0266f353df6167313","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":"Extra empty line detected at module body end.","created_at":"2015-09-02T11:18:07Z","updated_at":"2015-09-02T11:18:07Z","html_url":"https://github.com/zilverline/google-maps/pull/6#discussion_r38521103","pull_request_url":"https://api.github.com/repos/zilverline/google-maps/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/zilverline/google-maps/pulls/comments/38521103"},"html":{"href":"https://github.com/zilverline/google-maps/pull/6#discussion_r38521103"},"pull_request":{"href":"https://api.github.com/repos/zilverline/google-maps/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/zilverline/google-maps/pulls/6","id":43979931,"html_url":"https://github.com/zilverline/google-maps/pull/6","diff_url":"https://github.com/zilverline/google-maps/pull/6.diff","patch_url":"https://github.com/zilverline/google-maps/pull/6.patch","issue_url":"https://api.github.com/repos/zilverline/google-maps/issues/6","number":6,"state":"open","locked":false,"title":"Route mode","user":{"login":"stephanvd","id":1248040,"avatar_url":"https://avatars.githubusercontent.com/u/1248040?v=3","gravatar_id":"","url":"https://api.github.com/users/stephanvd","html_url":"https://github.com/stephanvd","followers_url":"https://api.github.com/users/stephanvd/followers","following_url":"https://api.github.com/users/stephanvd/following{/other_user}","gists_url":"https://api.github.com/users/stephanvd/gists{/gist_id}","starred_url":"https://api.github.com/users/stephanvd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephanvd/subscriptions","organizations_url":"https://api.github.com/users/stephanvd/orgs","repos_url":"https://api.github.com/users/stephanvd/repos","events_url":"https://api.github.com/users/stephanvd/events{/privacy}","received_events_url":"https://api.github.com/users/stephanvd/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-02T11:18:01Z","updated_at":"2015-09-02T11:18:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a98b3896fe2969e151f2eee4f13e32804c2ac49f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zilverline/google-maps/pulls/6/commits","review_comments_url":"https://api.github.com/repos/zilverline/google-maps/pulls/6/comments","review_comment_url":"https://api.github.com/repos/zilverline/google-maps/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zilverline/google-maps/issues/6/comments","statuses_url":"https://api.github.com/repos/zilverline/google-maps/statuses/e84a0f27325c44bafc70c9f0266f353df6167313","head":{"label":"zilverline:route-mode","ref":"route-mode","sha":"e84a0f27325c44bafc70c9f0266f353df6167313","user":{"login":"zilverline","id":159022,"avatar_url":"https://avatars.githubusercontent.com/u/159022?v=3","gravatar_id":"","url":"https://api.github.com/users/zilverline","html_url":"https://github.com/zilverline","followers_url":"https://api.github.com/users/zilverline/followers","following_url":"https://api.github.com/users/zilverline/following{/other_user}","gists_url":"https://api.github.com/users/zilverline/gists{/gist_id}","starred_url":"https://api.github.com/users/zilverline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zilverline/subscriptions","organizations_url":"https://api.github.com/users/zilverline/orgs","repos_url":"https://api.github.com/users/zilverline/repos","events_url":"https://api.github.com/users/zilverline/events{/privacy}","received_events_url":"https://api.github.com/users/zilverline/received_events","type":"Organization","site_admin":false},"repo":{"id":2475521,"name":"google-maps","full_name":"zilverline/google-maps","owner":{"login":"zilverline","id":159022,"avatar_url":"https://avatars.githubusercontent.com/u/159022?v=3","gravatar_id":"","url":"https://api.github.com/users/zilverline","html_url":"https://github.com/zilverline","followers_url":"https://api.github.com/users/zilverline/followers","following_url":"https://api.github.com/users/zilverline/following{/other_user}","gists_url":"https://api.github.com/users/zilverline/gists{/gist_id}","starred_url":"https://api.github.com/users/zilverline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zilverline/subscriptions","organizations_url":"https://api.github.com/users/zilverline/orgs","repos_url":"https://api.github.com/users/zilverline/repos","events_url":"https://api.github.com/users/zilverline/events{/privacy}","received_events_url":"https://api.github.com/users/zilverline/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zilverline/google-maps","description":"Ruby wrapper for the Google Maps API","fork":false,"url":"https://api.github.com/repos/zilverline/google-maps","forks_url":"https://api.github.com/repos/zilverline/google-maps/forks","keys_url":"https://api.github.com/repos/zilverline/google-maps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zilverline/google-maps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zilverline/google-maps/teams","hooks_url":"https://api.github.com/repos/zilverline/google-maps/hooks","issue_events_url":"https://api.github.com/repos/zilverline/google-maps/issues/events{/number}","events_url":"https://api.github.com/repos/zilverline/google-maps/events","assignees_url":"https://api.github.com/repos/zilverline/google-maps/assignees{/user}","branches_url":"https://api.github.com/repos/zilverline/google-maps/branches{/branch}","tags_url":"https://api.github.com/repos/zilverline/google-maps/tags","blobs_url":"https://api.github.com/repos/zilverline/google-maps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zilverline/google-maps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zilverline/google-maps/git/refs{/sha}","trees_url":"https://api.github.com/repos/zilverline/google-maps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zilverline/google-maps/statuses/{sha}","languages_url":"https://api.github.com/repos/zilverline/google-maps/languages","stargazers_url":"https://api.github.com/repos/zilverline/google-maps/stargazers","contributors_url":"https://api.github.com/repos/zilverline/google-maps/contributors","subscribers_url":"https://api.github.com/repos/zilverline/google-maps/subscribers","subscription_url":"https://api.github.com/repos/zilverline/google-maps/subscription","commits_url":"https://api.github.com/repos/zilverline/google-maps/commits{/sha}","git_commits_url":"https://api.github.com/repos/zilverline/google-maps/git/commits{/sha}","comments_url":"https://api.github.com/repos/zilverline/google-maps/comments{/number}","issue_comment_url":"https://api.github.com/repos/zilverline/google-maps/issues/comments{/number}","contents_url":"https://api.github.com/repos/zilverline/google-maps/contents/{+path}","compare_url":"https://api.github.com/repos/zilverline/google-maps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zilverline/google-maps/merges","archive_url":"https://api.github.com/repos/zilverline/google-maps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zilverline/google-maps/downloads","issues_url":"https://api.github.com/repos/zilverline/google-maps/issues{/number}","pulls_url":"https://api.github.com/repos/zilverline/google-maps/pulls{/number}","milestones_url":"https://api.github.com/repos/zilverline/google-maps/milestones{/number}","notifications_url":"https://api.github.com/repos/zilverline/google-maps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zilverline/google-maps/labels{/name}","releases_url":"https://api.github.com/repos/zilverline/google-maps/releases{/id}","created_at":"2011-09-28T14:42:02Z","updated_at":"2015-05-07T12:28:26Z","pushed_at":"2015-09-02T11:18:02Z","git_url":"git://github.com/zilverline/google-maps.git","ssh_url":"git@github.com:zilverline/google-maps.git","clone_url":"https://github.com/zilverline/google-maps.git","svn_url":"https://github.com/zilverline/google-maps","homepage":"https://github.com/zilverline/google-maps","size":447,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"zilverline:master","ref":"master","sha":"f60bcd3777b84ecbeb0936ab0b4b46f4e59fdf1f","user":{"login":"zilverline","id":159022,"avatar_url":"https://avatars.githubusercontent.com/u/159022?v=3","gravatar_id":"","url":"https://api.github.com/users/zilverline","html_url":"https://github.com/zilverline","followers_url":"https://api.github.com/users/zilverline/followers","following_url":"https://api.github.com/users/zilverline/following{/other_user}","gists_url":"https://api.github.com/users/zilverline/gists{/gist_id}","starred_url":"https://api.github.com/users/zilverline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zilverline/subscriptions","organizations_url":"https://api.github.com/users/zilverline/orgs","repos_url":"https://api.github.com/users/zilverline/repos","events_url":"https://api.github.com/users/zilverline/events{/privacy}","received_events_url":"https://api.github.com/users/zilverline/received_events","type":"Organization","site_admin":false},"repo":{"id":2475521,"name":"google-maps","full_name":"zilverline/google-maps","owner":{"login":"zilverline","id":159022,"avatar_url":"https://avatars.githubusercontent.com/u/159022?v=3","gravatar_id":"","url":"https://api.github.com/users/zilverline","html_url":"https://github.com/zilverline","followers_url":"https://api.github.com/users/zilverline/followers","following_url":"https://api.github.com/users/zilverline/following{/other_user}","gists_url":"https://api.github.com/users/zilverline/gists{/gist_id}","starred_url":"https://api.github.com/users/zilverline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zilverline/subscriptions","organizations_url":"https://api.github.com/users/zilverline/orgs","repos_url":"https://api.github.com/users/zilverline/repos","events_url":"https://api.github.com/users/zilverline/events{/privacy}","received_events_url":"https://api.github.com/users/zilverline/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zilverline/google-maps","description":"Ruby wrapper for the Google Maps API","fork":false,"url":"https://api.github.com/repos/zilverline/google-maps","forks_url":"https://api.github.com/repos/zilverline/google-maps/forks","keys_url":"https://api.github.com/repos/zilverline/google-maps/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zilverline/google-maps/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zilverline/google-maps/teams","hooks_url":"https://api.github.com/repos/zilverline/google-maps/hooks","issue_events_url":"https://api.github.com/repos/zilverline/google-maps/issues/events{/number}","events_url":"https://api.github.com/repos/zilverline/google-maps/events","assignees_url":"https://api.github.com/repos/zilverline/google-maps/assignees{/user}","branches_url":"https://api.github.com/repos/zilverline/google-maps/branches{/branch}","tags_url":"https://api.github.com/repos/zilverline/google-maps/tags","blobs_url":"https://api.github.com/repos/zilverline/google-maps/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zilverline/google-maps/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zilverline/google-maps/git/refs{/sha}","trees_url":"https://api.github.com/repos/zilverline/google-maps/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zilverline/google-maps/statuses/{sha}","languages_url":"https://api.github.com/repos/zilverline/google-maps/languages","stargazers_url":"https://api.github.com/repos/zilverline/google-maps/stargazers","contributors_url":"https://api.github.com/repos/zilverline/google-maps/contributors","subscribers_url":"https://api.github.com/repos/zilverline/google-maps/subscribers","subscription_url":"https://api.github.com/repos/zilverline/google-maps/subscription","commits_url":"https://api.github.com/repos/zilverline/google-maps/commits{/sha}","git_commits_url":"https://api.github.com/repos/zilverline/google-maps/git/commits{/sha}","comments_url":"https://api.github.com/repos/zilverline/google-maps/comments{/number}","issue_comment_url":"https://api.github.com/repos/zilverline/google-maps/issues/comments{/number}","contents_url":"https://api.github.com/repos/zilverline/google-maps/contents/{+path}","compare_url":"https://api.github.com/repos/zilverline/google-maps/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zilverline/google-maps/merges","archive_url":"https://api.github.com/repos/zilverline/google-maps/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zilverline/google-maps/downloads","issues_url":"https://api.github.com/repos/zilverline/google-maps/issues{/number}","pulls_url":"https://api.github.com/repos/zilverline/google-maps/pulls{/number}","milestones_url":"https://api.github.com/repos/zilverline/google-maps/milestones{/number}","notifications_url":"https://api.github.com/repos/zilverline/google-maps/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zilverline/google-maps/labels{/name}","releases_url":"https://api.github.com/repos/zilverline/google-maps/releases{/id}","created_at":"2011-09-28T14:42:02Z","updated_at":"2015-05-07T12:28:26Z","pushed_at":"2015-09-02T11:18:02Z","git_url":"git://github.com/zilverline/google-maps.git","ssh_url":"git@github.com:zilverline/google-maps.git","clone_url":"https://github.com/zilverline/google-maps.git","svn_url":"https://github.com/zilverline/google-maps","homepage":"https://github.com/zilverline/google-maps","size":447,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zilverline/google-maps/pulls/6"},"html":{"href":"https://github.com/zilverline/google-maps/pull/6"},"issue":{"href":"https://api.github.com/repos/zilverline/google-maps/issues/6"},"comments":{"href":"https://api.github.com/repos/zilverline/google-maps/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/zilverline/google-maps/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/zilverline/google-maps/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zilverline/google-maps/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/zilverline/google-maps/statuses/e84a0f27325c44bafc70c9f0266f353df6167313"}}}}