Class: CaptchaSolver::RecaptchaV2

Inherits:
Base
  • Object
show all
Defined in:
lib/captcha_solver/recaptcha_v2.rb

Constant Summary

Constants inherited from Base

Base::TIMEOUTS_BETWEEN_ATTEMPTS

Instance Attribute Summary collapse

Attributes inherited from Base

#complete_response, #proxy_address, #rucaptcha_api_key, #start_response

Instance Method Summary collapse

Methods inherited from Base

#solve, #solved_captcha

Constructor Details

#initialize(args) ⇒ RecaptchaV2

Returns a new instance of RecaptchaV2.



5
6
7
8
9
# File 'lib/captcha_solver/recaptcha_v2.rb', line 5

def initialize(args)
  super
  @google_key = args[:google_key]
  @page_url = args[:page_url]
end

Instance Attribute Details

#google_keyObject (readonly)

Returns the value of attribute google_key.



3
4
5
# File 'lib/captcha_solver/recaptcha_v2.rb', line 3

def google_key
  @google_key
end

#page_urlObject (readonly)

Returns the value of attribute page_url.



3
4
5
# File 'lib/captcha_solver/recaptcha_v2.rb', line 3

def page_url
  @page_url
end