class Google::Cloud::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 pubsub = Google::Cloud::PubSub.new( project_id: "my-project", credentials: creds ) pubsub.project_id #=> "my-project"