Module: Recaptcha
- Defined in:
- lib/recaptcha.rb,
lib/recaptcha/verify.rb,
lib/recaptcha/client_helper.rb,
lib/recaptcha/configuration.rb
Defined Under Namespace
Modules: ClientHelper, VERSION, Verify Classes: Configuration, RecaptchaError
Constant Summary collapse
- RECAPTCHA_API_SERVER_URL =
'http://www.google.com/recaptcha/api'
- RECAPTCHA_API_SECURE_SERVER_URL =
'https://www.google.com/recaptcha/api'
- RECAPTCHA_VERIFY_URL =
'http://www.google.com/recaptcha/api'
- SKIP_VERIFY_ENV =
['test', 'cucumber']
Class Method Summary collapse
-
.configuration ⇒ Object
Gives access to the current Configuration.
-
.configure {|config| ... } ⇒ Object
Allows easy setting of multiple configuration options.
Class Method Details
.configuration ⇒ Object
Gives access to the current Configuration.
23 24 25 |
# File 'lib/recaptcha.rb', line 23 def self.configuration @configuration ||= Configuration.new end |
.configure {|config| ... } ⇒ Object
Allows easy setting of multiple configuration options. See Configuration for all available options. – The temp assignment is only used to get a nicer rdoc. Feel free to remove this hack. ++
33 34 35 36 |
# File 'lib/recaptcha.rb', line 33 def self.configure config = configuration yield(config) end |