Module: Google::Cloud::Talent::ProfileService
- Defined in:
- lib/google/cloud/talent.rb
Class Method Summary collapse
-
.new(version: , credentials: , scopes: , client_config: , timeout: ) ⇒ Object
A service that handles profile management, including profile CRUD, enumeration and search.
Class Method Details
.new(version: , credentials: , scopes: , client_config: , timeout: ) ⇒ Object
A service that handles profile management, including profile CRUD, enumeration and search.
389 390 391 392 393 394 395 396 397 398 399 400 401 |
# File 'lib/google/cloud/talent.rb', line 389 def self.new(*args, version: :v4beta1, **kwargs) unless AVAILABLE_VERSIONS.include?(version.to_s.downcase) raise "The version: #{version} is not available. The available versions " \ "are: [#{AVAILABLE_VERSIONS.join(", ")}]" end require "#{FILE_DIR}/#{version.to_s.downcase}" version_module = Google::Cloud::Talent .constants .select {|sym| sym.to_s.downcase == version.to_s.downcase} .first Google::Cloud::Talent.const_get(version_module)::ProfileService.new(*args, **kwargs) end |