Class: ReCaptcha::MHClient

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

Overview

Mail hide client. Provides interfaceto ReCaptcha MailHide API

Instance Method Summary collapse

Constructor Details

#initialize(pubkey, privkey, address) ⇒ MHClient

pubkey

MailHide public key

privkey

MailHide private key

address

the address you want to hide.



94
95
96
97
98
# File 'lib/recaptcha.rb', line 94

def initialize(pubkey, privkey, address)
  @pubkey = pubkey
  @privkey = privkey
  @address = address
end

Instance Method Details

#crypted_addressObject

The encrypted address



100
101
102
# File 'lib/recaptcha.rb', line 100

def crypted_address
  encrypt(@address)
end