Class Recaptcha::Configuration
In: lib/recaptcha/configuration.rb
Parent: Object

This class enables detailed configuration of the recaptcha services.

By calling

  Recaptcha.configuration # => instance of Recaptcha::Configuration

or

  Recaptcha.configure do |config|
    config # => instance of Recaptcha::Configuration
  end

you are able to perform configuration updates.

Your are able to customize all attributes listed below. All values have sensitive default and will very likely not need to be changed.

Please note that the public and private key for the reCAPTCHA API Access have no useful default value. The keys may be set via the Shell enviroment or using this configuration. Settings within this configuration always take precedence.

Setting the keys with this Configuration

  Recaptcha.configure do |config|
    config.public_key  = '6Lc6BAAAAAAAAChqRbQZcn_yyyyyyyyyyyyyyyyy'
    config.private_key = '6Lc6BAAAAAAAAKN3DRm6VA_xxxxxxxxxxxxxxxxx'
  end

Attributes

nonssl_api_server_url  [RW] 
private_key  [RW] 
public_key  [RW] 
skip_verify_env  [RW] 
ssl_api_server_url  [RW] 
verify_url  [RW] 

[Validate]