Sha256: 1939397d9eb8898fa49082be8e373346ee4cd1feb2a200ef7753205f91811d36
Contents?: true
Size: 1.49 KB
Versions: 6
Compression:
Stored size: 1.49 KB
Contents
module YandexCaptcha # This class enables detailed configuration of the Yandex CleanWeb services. # # By calling # # YandexCaptcha.configuration # => instance of YandexCaptcha::Configuration # # or # YandexCaptcha.configure do |config| # config # => instance of YandexCaptcha::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 Yandex CleanWeb 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 # # YandexCaptcha.configure do |config| # config.api_key = 'cw.1.1.gsdjdgskjhsdgjkgsdjsdjgkskhsgjkgsjhdkgsdghskd.sdgjhgsdsgdkjgdshkgds' # config.captcha_type = 'elite' # end # class Configuration attr_accessor :api_server_url, :api_key, :skip_verify_env, :handle_timeouts_gracefully, :captcha_type def initialize #:nodoc: @api_server_url = API_URL @captcha_type = CAPTCHA_TYPE @api_key = ENV['CAPTCHA_KEY'] @skip_verify_env = SKIP_VERIFY_ENV @handle_timeouts_gracefully = HANDLE_TIMEOUTS_GRACEFULLY end end end
Version data entries
6 entries across 6 versions & 1 rubygems