Method: WindcaveRest::Configuration#api_key_with_prefix

Defined in:
lib/windcave_rest/configuration.rb

#api_key_with_prefix(param_name) ⇒ Object

Gets API key (with prefix if set).

Parameters:

  • the parameter name of API key auth



200
201
202
203
204
205
206
# File 'lib/windcave_rest/configuration.rb', line 200

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