Reference documentation and code samples for the gapic-common module Gapic::UniverseDomainConcerns.
A mixin module that provides methods for obtaining the effective universe
domain, endpoint, and credentials for a stub. This is included in
Grpc::ServiceStub and Rest::ClientStub.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# gapic-common - Module Gapic::UniverseDomainConcerns (v1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/ruby/docs/reference/gapic-common/latest/Gapic-UniverseDomainConcerns)\n- [1.0.1](/ruby/docs/reference/gapic-common/1.0.1/Gapic-UniverseDomainConcerns)\n- [0.26.0](/ruby/docs/reference/gapic-common/0.26.0/Gapic-UniverseDomainConcerns)\n- [0.25.0](/ruby/docs/reference/gapic-common/0.25.0/Gapic-UniverseDomainConcerns)\n- [0.24.0](/ruby/docs/reference/gapic-common/0.24.0/Gapic-UniverseDomainConcerns) \nReference documentation and code samples for the gapic-common module Gapic::UniverseDomainConcerns.\n\nA mixin module that provides methods for obtaining the effective universe\ndomain, endpoint, and credentials for a stub. This is included in\nGrpc::ServiceStub and Rest::ClientStub.\n\nMethods\n-------\n\n### #credentials\n\n def credentials() -\u003e Google::Auth::Credentials, Signet::OAuth2::Client, Proc, ::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials\n\nThe effective credentials \n**Returns**\n\n- (Google::Auth::Credentials, Signet::OAuth2::Client, Proc, ::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials)\n\n### #endpoint\n\n def endpoint() -\u003e String\n\nThe effective endpoint \n**Returns**\n\n- (String)\n\n### #universe_domain\n\n def universe_domain() -\u003e String\n\nThe effective universe domain \n**Returns**\n\n- (String)\n\nConstants\n---------\n\n### ENDPOINT_SUBSTITUTION\n\n**value:** \"$UNIVERSE_DOMAIN$\".freeze \nA substitution string for the universe domain in an endpoint template"]]