Module: Google::Cloud
- Defined in:
- lib/google-cloud-firestore.rb,
lib/google/cloud/firestore.rb,
lib/google/cloud/firestore/batch.rb,
lib/google/cloud/firestore/query.rb,
lib/google/cloud/firestore/client.rb,
lib/google/cloud/firestore/convert.rb,
lib/google/cloud/firestore/service.rb,
lib/google/cloud/firestore/v1beta1.rb,
lib/google/cloud/firestore/version.rb,
lib/google/cloud/firestore/generate.rb,
lib/google/cloud/firestore/field_path.rb,
lib/google/cloud/firestore/credentials.rb,
lib/google/cloud/firestore/field_value.rb,
lib/google/cloud/firestore/transaction.rb,
lib/google/cloud/firestore/commit_response.rb,
lib/google/cloud/firestore/document_snapshot.rb,
lib/google/cloud/firestore/document_reference.rb,
lib/google/cloud/firestore/collection_reference.rb,
lib/google/cloud/firestore/v1beta1/doc/overview.rb,
lib/google/cloud/firestore/v1beta1/firestore_client.rb
Defined Under Namespace
Modules: Firestore
Class Method Summary collapse
-
.firestore(project_id = nil, credentials = nil, scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Firestore::Client
Creates a new object for connecting to the Firestore service.
Instance Method Summary collapse
-
#firestore(scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Firestore::Client
Creates a new object for connecting to the Firestore service.
Class Method Details
.firestore(project_id = nil, credentials = nil, scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Firestore::Client
Creates a new object for connecting to the Firestore service. Each call creates a new connection.
For more information on connecting to Google Cloud see the Authentication Guide.
97 98 99 100 101 102 103 104 |
# File 'lib/google-cloud-firestore.rb', line 97 def self.firestore project_id = nil, credentials = nil, scope: nil, timeout: nil, client_config: nil require "google/cloud/firestore" Google::Cloud::Firestore.new project_id: project_id, credentials: credentials, scope: scope, timeout: timeout, client_config: client_config end |
Instance Method Details
#firestore(scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Firestore::Client
Creates a new object for connecting to the Firestore service. Each call creates a new connection.
For more information on connecting to Google Cloud see the Authentication Guide.
60 61 62 63 64 |
# File 'lib/google-cloud-firestore.rb', line 60 def firestore scope: nil, timeout: nil, client_config: nil Google::Cloud.firestore @project, @keyfile, scope: scope, timeout: (timeout || @timeout), client_config: client_config end |