Method: OSDNClient::Configuration#api_key_with_prefix

Defined in:
lib/osdn-client/configuration.rb

#api_key_with_prefix(param_name) ⇒ Object

Gets API key (with prefix if set).

Parameters:

  • param_name (String)

    the parameter name of API key auth

[View source]

188
189
190
191
192
193
194
# File 'lib/osdn-client/configuration.rb', line 188

def api_key_with_prefix(param_name)
  if @api_key_prefix[param_name]
    "#{@api_key_prefix[param_name]} #{@api_key[param_name]}"
  else
    @api_key[param_name]
  end
end