module RainCaptcha::Configuration
Constants
- RAINCAPTCHA_URL
Attributes
use_ssl[RW]
Public Class Methods
extended(base)
click to toggle source
# File lib/rain_captcha/configuration.rb, line 7 def self.extended(base) base.reset end
Public Instance Methods
configure() { |self| ... }
click to toggle source
# File lib/rain_captcha/configuration.rb, line 11 def configure yield self end
endpoint()
click to toggle source
# File lib/rain_captcha/configuration.rb, line 19 def endpoint "#{self.protocol}://#{RAINCAPTCHA_URL}" end
protocol()
click to toggle source
# File lib/rain_captcha/configuration.rb, line 15 def protocol self.use_ssl ? "https" : "http" end
reset()
click to toggle source
# File lib/rain_captcha/configuration.rb, line 23 def reset self.use_ssl = false end