Class: CaptchaSolver::FunCaptcha

Inherits:
Base
  • Object
show all
Defined in:
lib/captcha_solver/fun_captcha.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 = {}) ⇒ FunCaptcha

Returns a new instance of FunCaptcha.



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

def initialize(args = {})
  super
  @public_key = args[:public_key]
  @page_url = args[:page_url]
end

Instance Attribute Details

#page_urlObject (readonly)

Returns the value of attribute page_url.



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

def page_url
  @page_url
end

#public_keyObject (readonly)

Returns the value of attribute public_key.



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

def public_key
  @public_key
end