{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/52","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/52/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/52/events","html_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples/issues/52","id":177484267,"number":52,"title":"Google Cloud API Client initialization inconsistent","user":{"login":"frankyn","id":1907648,"avatar_url":"https://avatars.githubusercontent.com/u/1907648?v=3","gravatar_id":"","url":"https://api.github.com/users/frankyn","html_url":"https://github.com/frankyn","followers_url":"https://api.github.com/users/frankyn/followers","following_url":"https://api.github.com/users/frankyn/following{/other_user}","gists_url":"https://api.github.com/users/frankyn/gists{/gist_id}","starred_url":"https://api.github.com/users/frankyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankyn/subscriptions","organizations_url":"https://api.github.com/users/frankyn/orgs","repos_url":"https://api.github.com/users/frankyn/repos","events_url":"https://api.github.com/users/frankyn/events{/privacy}","received_events_url":"https://api.github.com/users/frankyn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-16T17:57:38Z","updated_at":"2016-09-26T20:26:27Z","closed_at":"2016-09-26T20:26:27Z","body":"**Story**\r\n\r\nRubyist knows to use **Google Data Store API**. Rubyist wants to learn **Google Vision API** and the samples use different **Google Cloud API Client** initialization. _Confusion begins_.\r\n\r\n**Issue**\r\nInitialization is inconsistent between these two samples. The issue may exist in other samples within the Ruby space. \r\n\r\n_DataStore uses_\r\nrequire \"gcloud\"\r\ngcloud = Gcloud.new\r\ndatastore = gcloud.datastore\r\n\r\n_Vision uses_\r\nrequire \"google/cloud\"\r\ngcloud = Google::Cloud.new\r\nvision = gcloud.vision\r\n\r\n**Issue exists in the following locations:**\r\nappengine/datastore/app.rb\r\nappengine/pubsub/app.rb\r\nappengine/pubsub/spec/pubsub_spec.rb\r\nbigquery/shakespeare.rb\r\ndatastore/sample.rb\r\nlogging/spec/sample_spec.rb\r\nlogging/sample.rb\r\npubsub/sample.rb\r\n\r\n**Possible Solution**\r\nUse the same initialization in all Ruby samples."},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/comments/249687049","html_url":"https://github.com/GoogleCloudPlatform/ruby-docs-samples/issues/52#issuecomment-249687049","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/ruby-docs-samples/issues/52","id":249687049,"user":{"login":"remi","id":280,"avatar_url":"https://avatars.githubusercontent.com/u/280?v=3","gravatar_id":"","url":"https://api.github.com/users/remi","html_url":"https://github.com/remi","followers_url":"https://api.github.com/users/remi/followers","following_url":"https://api.github.com/users/remi/following{/other_user}","gists_url":"https://api.github.com/users/remi/gists{/gist_id}","starred_url":"https://api.github.com/users/remi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remi/subscriptions","organizations_url":"https://api.github.com/users/remi/orgs","repos_url":"https://api.github.com/users/remi/repos","events_url":"https://api.github.com/users/remi/events{/privacy}","received_events_url":"https://api.github.com/users/remi/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T20:26:27Z","updated_at":"2016-09-26T20:26:27Z","body":"Duplicate of #55 \r\n\r\nFix pending in #65 "}}
{"actor":{"display_login":"remi"}}