Module: Google::Cloud
- Defined in:
- lib/google-cloud-pubsub.rb,
lib/google/cloud/pubsub.rb,
lib/google/cloud/pubsub/topic.rb,
lib/google/cloud/pubsub/policy.rb,
lib/google/cloud/pubsub/message.rb,
lib/google/cloud/pubsub/project.rb,
lib/google/cloud/pubsub/service.rb,
lib/google/cloud/pubsub/version.rb,
lib/google/cloud/pubsub/topic/list.rb,
lib/google/cloud/pubsub/credentials.rb,
lib/google/cloud/pubsub/subscription.rb,
lib/google/cloud/pubsub/topic/publisher.rb,
lib/google/cloud/pubsub/received_message.rb,
lib/google/cloud/pubsub/subscription/list.rb,
lib/google/cloud/pubsub/v1/publisher_client.rb,
lib/google/cloud/pubsub/v1/subscriber_client.rb
Defined Under Namespace
Modules: Pubsub
Class Method Summary collapse
-
.pubsub(project = nil, keyfile = nil, scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Pubsub::Project
Creates a new object for connecting to the Pub/Sub service.
Instance Method Summary collapse
-
#pubsub(scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Pubsub::Project
Creates a new object for connecting to the Pub/Sub service.
Class Method Details
.pubsub(project = nil, keyfile = nil, scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Pubsub::Project
Creates a new object for connecting to the Pub/Sub service. Each call creates a new connection.
For more information on connecting to Google Cloud see the Authentication Guide.
101 102 103 104 105 106 107 |
# File 'lib/google-cloud-pubsub.rb', line 101 def self.pubsub project = nil, keyfile = nil, scope: nil, timeout: nil, client_config: nil require "google/cloud/pubsub" Google::Cloud::Pubsub.new project: project, keyfile: keyfile, scope: scope, timeout: timeout, client_config: client_config end |
Instance Method Details
#pubsub(scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Pubsub::Project
Creates a new object for connecting to the Pub/Sub service. Each call creates a new connection.
For more information on connecting to Google Cloud see the Authentication Guide.
62 63 64 65 66 |
# File 'lib/google-cloud-pubsub.rb', line 62 def pubsub scope: nil, timeout: nil, client_config: nil Google::Cloud.pubsub @project, @keyfile, scope: scope, timeout: (timeout || @timeout), client_config: client_config end |