Class: Capsolver::Cloudflare

Inherits:
Base
  • Object
show all
Defined in:
lib/capsolver/cloudflare.rb

Constant Summary

Constants inherited from Base

Base::APP_ID, Base::CAPTCHA_UNSOLVABLE, Base::CAPTCHA_UNSOLVABLE_DESCRIPTION, Base::REQUEST_URL, Base::VALID_STATUS_CODES

Instance Attribute Summary

Attributes inherited from Base

#api_key, #captcha_type, #request_url, #sleep_time

Instance Method Summary collapse

Methods inherited from Base

#captcha_handler

Constructor Details

#initialize(api_key: nil, captcha_type: "AntiTurnstileTaskProxyLess", **kwargs) ⇒ Cloudflare

Returns a new instance of Cloudflare.



5
6
7
# File 'lib/capsolver/cloudflare.rb', line 5

def initialize(api_key: nil, captcha_type: "AntiTurnstileTaskProxyLess", **kwargs)
  super(api_key: api_key, captcha_type: captcha_type, **kwargs)
end