lib/google/cloud/pubsub/credentials.rb in google-cloud-pubsub-0.33.2 vs lib/google/cloud/pubsub/credentials.rb in google-cloud-pubsub-0.34.0

- old
+ new

@@ -16,30 +16,32 @@ require "googleauth" require "google/cloud/pubsub/v1/credentials.rb" module Google module Cloud - module Pubsub + module PubSub ## # # Credentials # # Represents the authentication and authorization used to connect to the # Pub/Sub API. # # @example # require "google/cloud/pubsub" # # keyfile = "/path/to/keyfile.json" - # creds = Google::Cloud::Pubsub::Credentials.new keyfile + # creds = Google::Cloud::PubSub::Credentials.new keyfile # - # pubsub = Google::Cloud::Pubsub.new( + # pubsub = Google::Cloud::PubSub.new( # project_id: "my-project", # credentials: creds # ) # # pubsub.project_id #=> "my-project" # - class Credentials < Google::Cloud::Pubsub::V1::Credentials + class Credentials < Google::Cloud::PubSub::V1::Credentials end end + + Pubsub = PubSub unless const_defined? :Pubsub end end