Module: Lilypad::Config::Methods

Included in:
Hoptoad::Deploy, Hoptoad::XML
Defined in:
lib/lilypad/config.rb

Instance Method Summary collapse

Instance Method Details

#api_key(env = nil, exception = nil) ⇒ Object



48
49
50
51
52
53
54
# File 'lib/lilypad/config.rb', line 48

def api_key(env=nil, exception=nil)
  if Config.api_key.respond_to?(:call)
    Config.api_key.call env, exception
  else
    Config.api_key
  end
end