Class: AntiCaptcha::RecaptchaV3Solution

Inherits:
Solution show all
Defined in:
lib/anti_captcha/models/recaptcha_v3_solution.rb

Instance Attribute Summary collapse

Attributes inherited from Solution

#api_response, #task_result

Instance Method Summary collapse

Constructor Details

#initialize(task_result = nil) ⇒ RecaptchaV3Solution

Returns a new instance of RecaptchaV3Solution.



5
6
7
8
9
10
11
12
# File 'lib/anti_captcha/models/recaptcha_v3_solution.rb', line 5

def initialize(task_result = nil)
  super

  if task_result
    @g_recaptcha_response     = task_result.api_result['solution']['gRecaptchaResponse']
    @g_recaptcha_response_md5 = task_result.api_result['solution']['gRecaptchaResponseMD5']
  end
end

Instance Attribute Details

#g_recaptcha_responseObject

Returns the value of attribute g_recaptcha_response.



3
4
5
# File 'lib/anti_captcha/models/recaptcha_v3_solution.rb', line 3

def g_recaptcha_response
  @g_recaptcha_response
end

#g_recaptcha_response_md5Object

Returns the value of attribute g_recaptcha_response_md5.



3
4
5
# File 'lib/anti_captcha/models/recaptcha_v3_solution.rb', line 3

def g_recaptcha_response_md5
  @g_recaptcha_response_md5
end