Module: Google::Cloud
- Defined in:
- lib/google-cloud-language.rb,
lib/google/cloud/language.rb,
lib/google/cloud/language/convert.rb,
lib/google/cloud/language/project.rb,
lib/google/cloud/language/service.rb,
lib/google/cloud/language/version.rb,
lib/google/cloud/language/document.rb,
lib/google/cloud/language/annotation.rb,
lib/google/cloud/language/credentials.rb,
lib/google/cloud/language/v1/language_service_client.rb,
lib/google/cloud/language/v1beta2/language_service_client.rb,
lib/google/cloud/language/v1/doc/google/cloud/language/v1/language_service.rb,
lib/google/cloud/language/v1beta2/doc/google/cloud/language/v1beta2/language_service.rb
Defined Under Namespace
Modules: Language
Class Method Summary collapse
-
.language(project = nil, keyfile = nil, scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Language::Project
Creates a new object for connecting to the Language service.
Instance Method Summary collapse
-
#language(scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Language::Project
Creates a new object for connecting to the Language service.
Class Method Details
.language(project = nil, keyfile = nil, scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Language::Project
Creates a new object for connecting to the Language service. Each call creates a new connection.
For more information on connecting to Google Cloud see the Authentication Guide.
104 105 106 107 108 109 110 |
# File 'lib/google-cloud-language.rb', line 104 def self.language project = nil, keyfile = nil, scope: nil, timeout: nil, client_config: nil require "google/cloud/language" Google::Cloud::Language.new project: project, keyfile: keyfile, scope: scope, timeout: timeout, client_config: client_config end |
Instance Method Details
#language(scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Language::Project
Creates a new object for connecting to the Language service. Each call creates a new connection.
For more information on connecting to Google Cloud see the Authentication Guide.
64 65 66 67 68 |
# File 'lib/google-cloud-language.rb', line 64 def language scope: nil, timeout: nil, client_config: nil Google::Cloud.language @project, @keyfile, scope: scope, timeout: (timeout || @timeout), client_config: client_config end |