Class: Nlpcaptcha::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/nlpcaptcha/configuration.rb

Overview

end

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

:nodoc:



39
40
41
42
43
44
45
46
# File 'lib/nlpcaptcha/configuration.rb', line 39

def initialize #:nodoc:
  @js_url = NLPCAPTCHA_JS_URL
  @validate_url    = NLPCAPTCHA_VALIDATE_URL
  @skip_verify_env       = SKIP_VERIFY_ENV
  @validator_key           = ENV['NLPCAPTCHA_VALIDATOR_KEY']
  @private_key           = ENV['NLPCAPTCHA_PRIVATE_KEY']
  @publisher_key            = ENV['NLPCAPTCHA_PUBLISHER_KEY']
end

Instance Attribute Details

#js_urlObject

Returns the value of attribute js_url.



30
31
32
# File 'lib/nlpcaptcha/configuration.rb', line 30

def js_url
  @js_url
end

#private_keyObject

Returns the value of attribute private_key.



30
31
32
# File 'lib/nlpcaptcha/configuration.rb', line 30

def private_key
  @private_key
end

#proxyObject

Returns the value of attribute proxy.



30
31
32
# File 'lib/nlpcaptcha/configuration.rb', line 30

def proxy
  @proxy
end

#publisher_keyObject

Returns the value of attribute publisher_key.



30
31
32
# File 'lib/nlpcaptcha/configuration.rb', line 30

def publisher_key
  @publisher_key
end

#skip_verify_envObject

Returns the value of attribute skip_verify_env.



30
31
32
# File 'lib/nlpcaptcha/configuration.rb', line 30

def skip_verify_env
  @skip_verify_env
end

#validate_urlObject

Returns the value of attribute validate_url.



30
31
32
# File 'lib/nlpcaptcha/configuration.rb', line 30

def validate_url
  @validate_url
end

#validator_keyObject

Returns the value of attribute validator_key.



30
31
32
# File 'lib/nlpcaptcha/configuration.rb', line 30

def validator_key
  @validator_key
end