Module: SimpleRecaptcha

Extended by:
Forwardable
Defined in:
lib/simple_recaptcha.rb,
lib/simple_recaptcha/version.rb

Defined Under Namespace

Classes: Client

Constant Summary collapse

VERIFY_URL =
"http://www.google.com/recaptcha/api/verify"
VERSION =
"0.0.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.private_keyObject

Returns the value of attribute private_key.



12
13
14
# File 'lib/simple_recaptcha.rb', line 12

def private_key
  @private_key
end

.public_keyObject

Returns the value of attribute public_key.



12
13
14
# File 'lib/simple_recaptcha.rb', line 12

def public_key
  @public_key
end

Class Method Details

.clientObject



20
21
22
# File 'lib/simple_recaptcha.rb', line 20

def client
  @client ||= SimpleRecaptcha::Client.new
end

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



16
17
18
# File 'lib/simple_recaptcha.rb', line 16

def configure
  yield self
end