{"action":"created","comment":{"url":"https://api.github.com/repos/masone/twofishes-ruby/pulls/comments/24298978","id":24298978,"diff_hunk":"@@ -16,41 +12,51 @@ def self.from_response(hash)\n       end\n     end\n \n-    def name\n-      feature.name\n+    def what\n+      @data['what']\n     end\n \n-    def display_name\n-      feature.display_name\n+    def where\n+      @data['where']\n     end\n \n     def country_code\n-      feature.cc\n+      feature['cc']\n     end\n \n     def lat\n-      feature.geometry.center.lat\n+      feature['geometry']['center']['lat']\n     end\n \n     def lng\n-      feature.geometry.center.lng\n+      feature['geometry']['center']['lng']\n     end\n \n     def coordinates\n       [lat, lng]\n     end\n \n+    def feature\n+      @data['feature']\n+    end\n+\n     def parents\n-      @data.parents.map { |parent| Twofishes::Result.new(parent) }\n+      @data['parents'].map { |parent| Twofishes::Result.new(parent) }\n     end\n \n     def method_missing(method_sym, *arguments, &block)\n-      @data.send(method_sym)\n+      return super unless respond_to?(method_sym)\n+      feature.send(:[], derubyfy_key(method_sym))\n     end\n \n-    def respond_to?(method_sym, include_private=false)\n-      @data.respond_to?(method_sym) ? true : super\n+    def respond_to?(method_sym, include_private = false)\n+      feature.include?(derubyfy_key(method_sym)) ? true : super\n     end\n \n+    private\n+\n+    def derubyfy_key(key)\n+      key.to_s.gsub(/_[a-z]/) { |m| m[1].upcase }","path":"lib/twofishes/result.rb","position":72,"original_position":72,"commit_id":"f400e80130c3c033d86f3492a1ced30f2c29fd89","original_commit_id":"f400e80130c3c033d86f3492a1ced30f2c29fd89","user":{"login":"masone","id":2797,"avatar_url":"https://avatars.githubusercontent.com/u/2797?v=3","gravatar_id":"","url":"https://api.github.com/users/masone","html_url":"https://github.com/masone","followers_url":"https://api.github.com/users/masone/followers","following_url":"https://api.github.com/users/masone/following{/other_user}","gists_url":"https://api.github.com/users/masone/gists{/gist_id}","starred_url":"https://api.github.com/users/masone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masone/subscriptions","organizations_url":"https://api.github.com/users/masone/orgs","repos_url":"https://api.github.com/users/masone/repos","events_url":"https://api.github.com/users/masone/events{/privacy}","received_events_url":"https://api.github.com/users/masone/received_events","type":"User","site_admin":false},"body":"i think it's not the case for twofishes, but should we support method names with other characters as a-z in it?\r\n","created_at":"2015-02-08T14:42:11Z","updated_at":"2015-02-08T14:42:11Z","html_url":"https://github.com/masone/twofishes-ruby/pull/2#discussion_r24298978","pull_request_url":"https://api.github.com/repos/masone/twofishes-ruby/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/masone/twofishes-ruby/pulls/comments/24298978"},"html":{"href":"https://github.com/masone/twofishes-ruby/pull/2#discussion_r24298978"},"pull_request":{"href":"https://api.github.com/repos/masone/twofishes-ruby/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/masone/twofishes-ruby/pulls/2","id":28864411,"html_url":"https://github.com/masone/twofishes-ruby/pull/2","diff_url":"https://github.com/masone/twofishes-ruby/pull/2.diff","patch_url":"https://github.com/masone/twofishes-ruby/pull/2.patch","issue_url":"https://api.github.com/repos/masone/twofishes-ruby/issues/2","number":2,"state":"open","locked":false,"title":"Get rid of 'rash' gem.","user":{"login":"barthez","id":151912,"avatar_url":"https://avatars.githubusercontent.com/u/151912?v=3","gravatar_id":"","url":"https://api.github.com/users/barthez","html_url":"https://github.com/barthez","followers_url":"https://api.github.com/users/barthez/followers","following_url":"https://api.github.com/users/barthez/following{/other_user}","gists_url":"https://api.github.com/users/barthez/gists{/gist_id}","starred_url":"https://api.github.com/users/barthez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barthez/subscriptions","organizations_url":"https://api.github.com/users/barthez/orgs","repos_url":"https://api.github.com/users/barthez/repos","events_url":"https://api.github.com/users/barthez/events{/privacy}","received_events_url":"https://api.github.com/users/barthez/received_events","type":"User","site_admin":false},"body":"Closes #1 ","created_at":"2015-02-07T13:49:54Z","updated_at":"2015-02-08T14:42:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee47f880d931c15bb83c17e59b549cee533cb15b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/masone/twofishes-ruby/pulls/2/commits","review_comments_url":"https://api.github.com/repos/masone/twofishes-ruby/pulls/2/comments","review_comment_url":"https://api.github.com/repos/masone/twofishes-ruby/pulls/comments/{number}","comments_url":"https://api.github.com/repos/masone/twofishes-ruby/issues/2/comments","statuses_url":"https://api.github.com/repos/masone/twofishes-ruby/statuses/f400e80130c3c033d86f3492a1ced30f2c29fd89","head":{"label":"barthez:remove_rash","ref":"remove_rash","sha":"f400e80130c3c033d86f3492a1ced30f2c29fd89","user":{"login":"barthez","id":151912,"avatar_url":"https://avatars.githubusercontent.com/u/151912?v=3","gravatar_id":"","url":"https://api.github.com/users/barthez","html_url":"https://github.com/barthez","followers_url":"https://api.github.com/users/barthez/followers","following_url":"https://api.github.com/users/barthez/following{/other_user}","gists_url":"https://api.github.com/users/barthez/gists{/gist_id}","starred_url":"https://api.github.com/users/barthez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barthez/subscriptions","organizations_url":"https://api.github.com/users/barthez/orgs","repos_url":"https://api.github.com/users/barthez/repos","events_url":"https://api.github.com/users/barthez/events{/privacy}","received_events_url":"https://api.github.com/users/barthez/received_events","type":"User","site_admin":false},"repo":{"id":30456151,"name":"twofishes-ruby","full_name":"barthez/twofishes-ruby","owner":{"login":"barthez","id":151912,"avatar_url":"https://avatars.githubusercontent.com/u/151912?v=3","gravatar_id":"","url":"https://api.github.com/users/barthez","html_url":"https://github.com/barthez","followers_url":"https://api.github.com/users/barthez/followers","following_url":"https://api.github.com/users/barthez/following{/other_user}","gists_url":"https://api.github.com/users/barthez/gists{/gist_id}","starred_url":"https://api.github.com/users/barthez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barthez/subscriptions","organizations_url":"https://api.github.com/users/barthez/orgs","repos_url":"https://api.github.com/users/barthez/repos","events_url":"https://api.github.com/users/barthez/events{/privacy}","received_events_url":"https://api.github.com/users/barthez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/barthez/twofishes-ruby","description":"Client for foursquare's Twofishes API, a sparse reverse geocoder.","fork":true,"url":"https://api.github.com/repos/barthez/twofishes-ruby","forks_url":"https://api.github.com/repos/barthez/twofishes-ruby/forks","keys_url":"https://api.github.com/repos/barthez/twofishes-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/barthez/twofishes-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/barthez/twofishes-ruby/teams","hooks_url":"https://api.github.com/repos/barthez/twofishes-ruby/hooks","issue_events_url":"https://api.github.com/repos/barthez/twofishes-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/barthez/twofishes-ruby/events","assignees_url":"https://api.github.com/repos/barthez/twofishes-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/barthez/twofishes-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/barthez/twofishes-ruby/tags","blobs_url":"https://api.github.com/repos/barthez/twofishes-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/barthez/twofishes-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/barthez/twofishes-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/barthez/twofishes-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/barthez/twofishes-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/barthez/twofishes-ruby/languages","stargazers_url":"https://api.github.com/repos/barthez/twofishes-ruby/stargazers","contributors_url":"https://api.github.com/repos/barthez/twofishes-ruby/contributors","subscribers_url":"https://api.github.com/repos/barthez/twofishes-ruby/subscribers","subscription_url":"https://api.github.com/repos/barthez/twofishes-ruby/subscription","commits_url":"https://api.github.com/repos/barthez/twofishes-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/barthez/twofishes-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/barthez/twofishes-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/barthez/twofishes-ruby/issues/comments/{number}","contents_url":"https://api.github.com/repos/barthez/twofishes-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/barthez/twofishes-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/barthez/twofishes-ruby/merges","archive_url":"https://api.github.com/repos/barthez/twofishes-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/barthez/twofishes-ruby/downloads","issues_url":"https://api.github.com/repos/barthez/twofishes-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/barthez/twofishes-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/barthez/twofishes-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/barthez/twofishes-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/barthez/twofishes-ruby/labels{/name}","releases_url":"https://api.github.com/repos/barthez/twofishes-ruby/releases{/id}","created_at":"2015-02-07T13:12:08Z","updated_at":"2015-02-07T13:12:09Z","pushed_at":"2015-02-07T13:49:35Z","git_url":"git://github.com/barthez/twofishes-ruby.git","ssh_url":"git@github.com:barthez/twofishes-ruby.git","clone_url":"https://github.com/barthez/twofishes-ruby.git","svn_url":"https://github.com/barthez/twofishes-ruby","homepage":null,"size":116,"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":"masone:master","ref":"master","sha":"4c24b68cf0299a38f2541a1880ec7ab13493fd9b","user":{"login":"masone","id":2797,"avatar_url":"https://avatars.githubusercontent.com/u/2797?v=3","gravatar_id":"","url":"https://api.github.com/users/masone","html_url":"https://github.com/masone","followers_url":"https://api.github.com/users/masone/followers","following_url":"https://api.github.com/users/masone/following{/other_user}","gists_url":"https://api.github.com/users/masone/gists{/gist_id}","starred_url":"https://api.github.com/users/masone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masone/subscriptions","organizations_url":"https://api.github.com/users/masone/orgs","repos_url":"https://api.github.com/users/masone/repos","events_url":"https://api.github.com/users/masone/events{/privacy}","received_events_url":"https://api.github.com/users/masone/received_events","type":"User","site_admin":false},"repo":{"id":20599142,"name":"twofishes-ruby","full_name":"masone/twofishes-ruby","owner":{"login":"masone","id":2797,"avatar_url":"https://avatars.githubusercontent.com/u/2797?v=3","gravatar_id":"","url":"https://api.github.com/users/masone","html_url":"https://github.com/masone","followers_url":"https://api.github.com/users/masone/followers","following_url":"https://api.github.com/users/masone/following{/other_user}","gists_url":"https://api.github.com/users/masone/gists{/gist_id}","starred_url":"https://api.github.com/users/masone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masone/subscriptions","organizations_url":"https://api.github.com/users/masone/orgs","repos_url":"https://api.github.com/users/masone/repos","events_url":"https://api.github.com/users/masone/events{/privacy}","received_events_url":"https://api.github.com/users/masone/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/masone/twofishes-ruby","description":"Client for foursquare's Twofishes API, a sparse reverse geocoder.","fork":false,"url":"https://api.github.com/repos/masone/twofishes-ruby","forks_url":"https://api.github.com/repos/masone/twofishes-ruby/forks","keys_url":"https://api.github.com/repos/masone/twofishes-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/masone/twofishes-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/masone/twofishes-ruby/teams","hooks_url":"https://api.github.com/repos/masone/twofishes-ruby/hooks","issue_events_url":"https://api.github.com/repos/masone/twofishes-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/masone/twofishes-ruby/events","assignees_url":"https://api.github.com/repos/masone/twofishes-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/masone/twofishes-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/masone/twofishes-ruby/tags","blobs_url":"https://api.github.com/repos/masone/twofishes-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/masone/twofishes-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/masone/twofishes-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/masone/twofishes-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/masone/twofishes-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/masone/twofishes-ruby/languages","stargazers_url":"https://api.github.com/repos/masone/twofishes-ruby/stargazers","contributors_url":"https://api.github.com/repos/masone/twofishes-ruby/contributors","subscribers_url":"https://api.github.com/repos/masone/twofishes-ruby/subscribers","subscription_url":"https://api.github.com/repos/masone/twofishes-ruby/subscription","commits_url":"https://api.github.com/repos/masone/twofishes-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/masone/twofishes-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/masone/twofishes-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/masone/twofishes-ruby/issues/comments/{number}","contents_url":"https://api.github.com/repos/masone/twofishes-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/masone/twofishes-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/masone/twofishes-ruby/merges","archive_url":"https://api.github.com/repos/masone/twofishes-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/masone/twofishes-ruby/downloads","issues_url":"https://api.github.com/repos/masone/twofishes-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/masone/twofishes-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/masone/twofishes-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/masone/twofishes-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/masone/twofishes-ruby/labels{/name}","releases_url":"https://api.github.com/repos/masone/twofishes-ruby/releases{/id}","created_at":"2014-06-07T17:57:18Z","updated_at":"2015-02-06T12:26:36Z","pushed_at":"2014-12-08T17:53:38Z","git_url":"git://github.com/masone/twofishes-ruby.git","ssh_url":"git@github.com:masone/twofishes-ruby.git","clone_url":"https://github.com/masone/twofishes-ruby.git","svn_url":"https://github.com/masone/twofishes-ruby","homepage":null,"size":296,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/masone/twofishes-ruby/pulls/2"},"html":{"href":"https://github.com/masone/twofishes-ruby/pull/2"},"issue":{"href":"https://api.github.com/repos/masone/twofishes-ruby/issues/2"},"comments":{"href":"https://api.github.com/repos/masone/twofishes-ruby/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/masone/twofishes-ruby/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/masone/twofishes-ruby/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/masone/twofishes-ruby/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/masone/twofishes-ruby/statuses/f400e80130c3c033d86f3492a1ced30f2c29fd89"}}}}