{"action":"created","comment":{"url":"https://api.github.com/repos/local-ch/lhc/pulls/comments/86723413","pull_request_review_id":7366072,"id":86723413,"diff_hunk":"@@ -57,6 +57,12 @@ The response data can be access with dot-notation and square-bracket notation. Y\n   response.data[:name] # 'local.ch'\n ```\n \n+You can also access response data directly through the response object (with square bracket notation only):\n+\n+```ruby\n+  LHC.json.get(url: 'http://datastore/entry/1')[:name]","path":"README.md","position":7,"original_position":7,"commit_id":"2f754cb26df3c06e878d71b3252266af47f1a239","original_commit_id":"2f754cb26df3c06e878d71b3252266af47f1a239","user":{"login":"fpellanda","id":249908,"avatar_url":"https://avatars.githubusercontent.com/u/249908?v=3","gravatar_id":"","url":"https://api.github.com/users/fpellanda","html_url":"https://github.com/fpellanda","followers_url":"https://api.github.com/users/fpellanda/followers","following_url":"https://api.github.com/users/fpellanda/following{/other_user}","gists_url":"https://api.github.com/users/fpellanda/gists{/gist_id}","starred_url":"https://api.github.com/users/fpellanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpellanda/subscriptions","organizations_url":"https://api.github.com/users/fpellanda/orgs","repos_url":"https://api.github.com/users/fpellanda/repos","events_url":"https://api.github.com/users/fpellanda/events{/privacy}","received_events_url":"https://api.github.com/users/fpellanda/received_events","type":"User","site_admin":false},"body":"Your spec accesses the data by String and the documentation uses a Symbol. Does it work either way?","created_at":"2016-11-07T07:33:38Z","updated_at":"2016-11-07T07:33:55Z","html_url":"https://github.com/local-ch/lhc/pull/64#discussion_r86723413","pull_request_url":"https://api.github.com/repos/local-ch/lhc/pulls/64","_links":{"self":{"href":"https://api.github.com/repos/local-ch/lhc/pulls/comments/86723413"},"html":{"href":"https://github.com/local-ch/lhc/pull/64#discussion_r86723413"},"pull_request":{"href":"https://api.github.com/repos/local-ch/lhc/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/local-ch/lhc/pulls/64","id":92362568,"html_url":"https://github.com/local-ch/lhc/pull/64","diff_url":"https://github.com/local-ch/lhc/pull/64.diff","patch_url":"https://github.com/local-ch/lhc/pull/64.patch","issue_url":"https://api.github.com/repos/local-ch/lhc/issues/64","number":64,"state":"open","locked":false,"title":"Access data directly on response","user":{"login":"pape-io","id":851393,"avatar_url":"https://avatars.githubusercontent.com/u/851393?v=3","gravatar_id":"","url":"https://api.github.com/users/pape-io","html_url":"https://github.com/pape-io","followers_url":"https://api.github.com/users/pape-io/followers","following_url":"https://api.github.com/users/pape-io/following{/other_user}","gists_url":"https://api.github.com/users/pape-io/gists{/gist_id}","starred_url":"https://api.github.com/users/pape-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pape-io/subscriptions","organizations_url":"https://api.github.com/users/pape-io/orgs","repos_url":"https://api.github.com/users/pape-io/repos","events_url":"https://api.github.com/users/pape-io/events{/privacy}","received_events_url":"https://api.github.com/users/pape-io/received_events","type":"User","site_admin":false},"body":"Minor version\r\n\r\nYou can also access response data directly through the response object (with square bracket notation only):\r\n\r\n```ruby\r\n  LHC.json.get(url: 'http://datastore/entry/1')[:name]\r\n```\r\n\r\nThis makes accessing the data object with `.data` unnecessary and direct data retrieval a little more convenient. ","created_at":"2016-11-04T15:36:16Z","updated_at":"2016-11-07T07:33:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5ae621a7274abdc940cf391c53d4ce89e2da5d3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/local-ch/lhc/pulls/64/commits","review_comments_url":"https://api.github.com/repos/local-ch/lhc/pulls/64/comments","review_comment_url":"https://api.github.com/repos/local-ch/lhc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/local-ch/lhc/issues/64/comments","statuses_url":"https://api.github.com/repos/local-ch/lhc/statuses/2f754cb26df3c06e878d71b3252266af47f1a239","head":{"label":"local-ch:square-bracket-accessor-on-request","ref":"square-bracket-accessor-on-request","sha":"2f754cb26df3c06e878d71b3252266af47f1a239","user":{"login":"local-ch","id":474837,"avatar_url":"https://avatars.githubusercontent.com/u/474837?v=3","gravatar_id":"","url":"https://api.github.com/users/local-ch","html_url":"https://github.com/local-ch","followers_url":"https://api.github.com/users/local-ch/followers","following_url":"https://api.github.com/users/local-ch/following{/other_user}","gists_url":"https://api.github.com/users/local-ch/gists{/gist_id}","starred_url":"https://api.github.com/users/local-ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/local-ch/subscriptions","organizations_url":"https://api.github.com/users/local-ch/orgs","repos_url":"https://api.github.com/users/local-ch/repos","events_url":"https://api.github.com/users/local-ch/events{/privacy}","received_events_url":"https://api.github.com/users/local-ch/received_events","type":"Organization","site_admin":false},"repo":{"id":24880318,"name":"lhc","full_name":"local-ch/lhc","owner":{"login":"local-ch","id":474837,"avatar_url":"https://avatars.githubusercontent.com/u/474837?v=3","gravatar_id":"","url":"https://api.github.com/users/local-ch","html_url":"https://github.com/local-ch","followers_url":"https://api.github.com/users/local-ch/followers","following_url":"https://api.github.com/users/local-ch/following{/other_user}","gists_url":"https://api.github.com/users/local-ch/gists{/gist_id}","starred_url":"https://api.github.com/users/local-ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/local-ch/subscriptions","organizations_url":"https://api.github.com/users/local-ch/orgs","repos_url":"https://api.github.com/users/local-ch/repos","events_url":"https://api.github.com/users/local-ch/events{/privacy}","received_events_url":"https://api.github.com/users/local-ch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/local-ch/lhc","description":"Rails gem for HTTP: Wraps typhoeus and provides additional features (like interceptors)","fork":false,"url":"https://api.github.com/repos/local-ch/lhc","forks_url":"https://api.github.com/repos/local-ch/lhc/forks","keys_url":"https://api.github.com/repos/local-ch/lhc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/local-ch/lhc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/local-ch/lhc/teams","hooks_url":"https://api.github.com/repos/local-ch/lhc/hooks","issue_events_url":"https://api.github.com/repos/local-ch/lhc/issues/events{/number}","events_url":"https://api.github.com/repos/local-ch/lhc/events","assignees_url":"https://api.github.com/repos/local-ch/lhc/assignees{/user}","branches_url":"https://api.github.com/repos/local-ch/lhc/branches{/branch}","tags_url":"https://api.github.com/repos/local-ch/lhc/tags","blobs_url":"https://api.github.com/repos/local-ch/lhc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/local-ch/lhc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/local-ch/lhc/git/refs{/sha}","trees_url":"https://api.github.com/repos/local-ch/lhc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/local-ch/lhc/statuses/{sha}","languages_url":"https://api.github.com/repos/local-ch/lhc/languages","stargazers_url":"https://api.github.com/repos/local-ch/lhc/stargazers","contributors_url":"https://api.github.com/repos/local-ch/lhc/contributors","subscribers_url":"https://api.github.com/repos/local-ch/lhc/subscribers","subscription_url":"https://api.github.com/repos/local-ch/lhc/subscription","commits_url":"https://api.github.com/repos/local-ch/lhc/commits{/sha}","git_commits_url":"https://api.github.com/repos/local-ch/lhc/git/commits{/sha}","comments_url":"https://api.github.com/repos/local-ch/lhc/comments{/number}","issue_comment_url":"https://api.github.com/repos/local-ch/lhc/issues/comments{/number}","contents_url":"https://api.github.com/repos/local-ch/lhc/contents/{+path}","compare_url":"https://api.github.com/repos/local-ch/lhc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/local-ch/lhc/merges","archive_url":"https://api.github.com/repos/local-ch/lhc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/local-ch/lhc/downloads","issues_url":"https://api.github.com/repos/local-ch/lhc/issues{/number}","pulls_url":"https://api.github.com/repos/local-ch/lhc/pulls{/number}","milestones_url":"https://api.github.com/repos/local-ch/lhc/milestones{/number}","notifications_url":"https://api.github.com/repos/local-ch/lhc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/local-ch/lhc/labels{/name}","releases_url":"https://api.github.com/repos/local-ch/lhc/releases{/id}","deployments_url":"https://api.github.com/repos/local-ch/lhc/deployments","created_at":"2014-10-07T07:09:50Z","updated_at":"2016-10-26T09:15:47Z","pushed_at":"2016-11-04T15:37:00Z","git_url":"git://github.com/local-ch/lhc.git","ssh_url":"git@github.com:local-ch/lhc.git","clone_url":"https://github.com/local-ch/lhc.git","svn_url":"https://github.com/local-ch/lhc","homepage":"","size":300,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":7,"default_branch":"master"}},"base":{"label":"local-ch:master","ref":"master","sha":"be7067a95fcf78c7ed95c81c0617149be51e38b9","user":{"login":"local-ch","id":474837,"avatar_url":"https://avatars.githubusercontent.com/u/474837?v=3","gravatar_id":"","url":"https://api.github.com/users/local-ch","html_url":"https://github.com/local-ch","followers_url":"https://api.github.com/users/local-ch/followers","following_url":"https://api.github.com/users/local-ch/following{/other_user}","gists_url":"https://api.github.com/users/local-ch/gists{/gist_id}","starred_url":"https://api.github.com/users/local-ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/local-ch/subscriptions","organizations_url":"https://api.github.com/users/local-ch/orgs","repos_url":"https://api.github.com/users/local-ch/repos","events_url":"https://api.github.com/users/local-ch/events{/privacy}","received_events_url":"https://api.github.com/users/local-ch/received_events","type":"Organization","site_admin":false},"repo":{"id":24880318,"name":"lhc","full_name":"local-ch/lhc","owner":{"login":"local-ch","id":474837,"avatar_url":"https://avatars.githubusercontent.com/u/474837?v=3","gravatar_id":"","url":"https://api.github.com/users/local-ch","html_url":"https://github.com/local-ch","followers_url":"https://api.github.com/users/local-ch/followers","following_url":"https://api.github.com/users/local-ch/following{/other_user}","gists_url":"https://api.github.com/users/local-ch/gists{/gist_id}","starred_url":"https://api.github.com/users/local-ch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/local-ch/subscriptions","organizations_url":"https://api.github.com/users/local-ch/orgs","repos_url":"https://api.github.com/users/local-ch/repos","events_url":"https://api.github.com/users/local-ch/events{/privacy}","received_events_url":"https://api.github.com/users/local-ch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/local-ch/lhc","description":"Rails gem for HTTP: Wraps typhoeus and provides additional features (like interceptors)","fork":false,"url":"https://api.github.com/repos/local-ch/lhc","forks_url":"https://api.github.com/repos/local-ch/lhc/forks","keys_url":"https://api.github.com/repos/local-ch/lhc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/local-ch/lhc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/local-ch/lhc/teams","hooks_url":"https://api.github.com/repos/local-ch/lhc/hooks","issue_events_url":"https://api.github.com/repos/local-ch/lhc/issues/events{/number}","events_url":"https://api.github.com/repos/local-ch/lhc/events","assignees_url":"https://api.github.com/repos/local-ch/lhc/assignees{/user}","branches_url":"https://api.github.com/repos/local-ch/lhc/branches{/branch}","tags_url":"https://api.github.com/repos/local-ch/lhc/tags","blobs_url":"https://api.github.com/repos/local-ch/lhc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/local-ch/lhc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/local-ch/lhc/git/refs{/sha}","trees_url":"https://api.github.com/repos/local-ch/lhc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/local-ch/lhc/statuses/{sha}","languages_url":"https://api.github.com/repos/local-ch/lhc/languages","stargazers_url":"https://api.github.com/repos/local-ch/lhc/stargazers","contributors_url":"https://api.github.com/repos/local-ch/lhc/contributors","subscribers_url":"https://api.github.com/repos/local-ch/lhc/subscribers","subscription_url":"https://api.github.com/repos/local-ch/lhc/subscription","commits_url":"https://api.github.com/repos/local-ch/lhc/commits{/sha}","git_commits_url":"https://api.github.com/repos/local-ch/lhc/git/commits{/sha}","comments_url":"https://api.github.com/repos/local-ch/lhc/comments{/number}","issue_comment_url":"https://api.github.com/repos/local-ch/lhc/issues/comments{/number}","contents_url":"https://api.github.com/repos/local-ch/lhc/contents/{+path}","compare_url":"https://api.github.com/repos/local-ch/lhc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/local-ch/lhc/merges","archive_url":"https://api.github.com/repos/local-ch/lhc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/local-ch/lhc/downloads","issues_url":"https://api.github.com/repos/local-ch/lhc/issues{/number}","pulls_url":"https://api.github.com/repos/local-ch/lhc/pulls{/number}","milestones_url":"https://api.github.com/repos/local-ch/lhc/milestones{/number}","notifications_url":"https://api.github.com/repos/local-ch/lhc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/local-ch/lhc/labels{/name}","releases_url":"https://api.github.com/repos/local-ch/lhc/releases{/id}","deployments_url":"https://api.github.com/repos/local-ch/lhc/deployments","created_at":"2014-10-07T07:09:50Z","updated_at":"2016-10-26T09:15:47Z","pushed_at":"2016-11-04T15:37:00Z","git_url":"git://github.com/local-ch/lhc.git","ssh_url":"git@github.com:local-ch/lhc.git","clone_url":"https://github.com/local-ch/lhc.git","svn_url":"https://github.com/local-ch/lhc","homepage":"","size":300,"stargazers_count":7,"watchers_count":7,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/local-ch/lhc/pulls/64"},"html":{"href":"https://github.com/local-ch/lhc/pull/64"},"issue":{"href":"https://api.github.com/repos/local-ch/lhc/issues/64"},"comments":{"href":"https://api.github.com/repos/local-ch/lhc/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/local-ch/lhc/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/local-ch/lhc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/local-ch/lhc/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/local-ch/lhc/statuses/2f754cb26df3c06e878d71b3252266af47f1a239"}}}}
{"actor":{"display_login":"fpellanda"}}