ad_manager_api/lib/ad_manager_api/credential_handler.rb
def generate_user_agent(extra_ids = [], include_utilities = true)
      agent_app = @config.read('authentication.application_name')
      extra_ids << ["AdManagerApi-Ruby/%s" %
          AdManagerApi::ApiConfig::CLIENT_LIB_VERSION]
      utility_registry = AdManagerApi::Utils::UtilityRegistry.instance
      extra_ids += utility_registry.extract!.to_a if include_utilities
      super(extra_ids, agent_app)
    end
def generate_user_agent(extra_ids = [], include_utilities = true)
      agent_app = @config.read('authentication.application_name')
      extra_ids << ["AdManagerApi-Ruby/%s" %
          AdManagerApi::ApiConfig::CLIENT_LIB_VERSION]
      utility_registry = AdManagerApi::Utils::UtilityRegistry.instance
      extra_ids += utility_registry.extract!.to_a if include_utilities
      super(extra_ids, agent_app)
    end
def generate_user_agent ( extra_ids = [ ] , include_utilities = true ) agent_app = @config . read ( 'authentication.application_name' ) extra_ids << [ "AdManagerApi-Ruby/%s" % AdManagerApi :: ApiConfig :: CLIENT_LIB_VERSION ] utility_registry = AdManagerApi :: Utils :: UtilityRegistry . instance extra_ids += utility_registry . extract! . to_a if include_utilities super ( extra_ids , agent_app ) end
Generates string to use as user agent in headers.
Generates string to use as user agent in headers .