{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/azure-armrest/issues/21","labels_url":"https://api.github.com/repos/ManageIQ/azure-armrest/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/azure-armrest/issues/21/comments","events_url":"https://api.github.com/repos/ManageIQ/azure-armrest/issues/21/events","html_url":"https://github.com/ManageIQ/azure-armrest/pull/21","id":88498881,"number":21,"title":"Add JSON wrapper class","user":{"login":"djberg96","id":78529,"avatar_url":"https://avatars.githubusercontent.com/u/78529?v=3","gravatar_id":"","url":"https://api.github.com/users/djberg96","html_url":"https://github.com/djberg96","followers_url":"https://api.github.com/users/djberg96/followers","following_url":"https://api.github.com/users/djberg96/following{/other_user}","gists_url":"https://api.github.com/users/djberg96/gists{/gist_id}","starred_url":"https://api.github.com/users/djberg96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djberg96/subscriptions","organizations_url":"https://api.github.com/users/djberg96/orgs","repos_url":"https://api.github.com/users/djberg96/repos","events_url":"https://api.github.com/users/djberg96/events{/privacy}","received_events_url":"https://api.github.com/users/djberg96/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-15T18:07:56Z","updated_at":"2015-09-29T19:50:31Z","closed_at":"2015-09-29T19:50:31Z","pull_request":{"url":"https://api.github.com/repos/ManageIQ/azure-armrest/pulls/21","html_url":"https://github.com/ManageIQ/azure-armrest/pull/21","diff_url":"https://github.com/ManageIQ/azure-armrest/pull/21.diff","patch_url":"https://github.com/ManageIQ/azure-armrest/pull/21.patch"},"body":"This adds a BaseWrapper class (and one initial subclass) that encapsulates the raw JSON data returned from the rest calls. This allows us to use methods (including chained methods) instead of using raw string accessors, including snake_case aliases for camelized properties.\r\n\r\n    # Example:\r\n    vmm = VirtualMachineManager.new\r\n    vm = vmm.get('your_vm')\r\n\r\n    vm.properties.hardwareProfile.deploymentName\r\n    vm.properties.hardware_profile.deployment_name # Same as above\r\n\r\nI've also included some tests."},"comment":{"url":"https://api.github.com/repos/ManageIQ/azure-armrest/issues/comments/144169385","html_url":"https://github.com/ManageIQ/azure-armrest/pull/21#issuecomment-144169385","issue_url":"https://api.github.com/repos/ManageIQ/azure-armrest/issues/21","id":144169385,"user":{"login":"djberg96","id":78529,"avatar_url":"https://avatars.githubusercontent.com/u/78529?v=3","gravatar_id":"","url":"https://api.github.com/users/djberg96","html_url":"https://github.com/djberg96","followers_url":"https://api.github.com/users/djberg96/followers","following_url":"https://api.github.com/users/djberg96/following{/other_user}","gists_url":"https://api.github.com/users/djberg96/gists{/gist_id}","starred_url":"https://api.github.com/users/djberg96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djberg96/subscriptions","organizations_url":"https://api.github.com/users/djberg96/orgs","repos_url":"https://api.github.com/users/djberg96/repos","events_url":"https://api.github.com/users/djberg96/events{/privacy}","received_events_url":"https://api.github.com/users/djberg96/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T19:50:31Z","updated_at":"2015-09-29T19:50:31Z","body":"Replaced by https://github.com/ManageIQ/azure-armrest/pull/79."}}