Class: AntiCaptcha::HCaptchaSolution

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

Instance Attribute Summary collapse

Attributes inherited from Solution

#api_response, #task_result

Instance Method Summary collapse

Constructor Details

#initialize(task_result = nil) ⇒ HCaptchaSolution



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

def initialize(task_result = nil)
  super

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

Instance Attribute Details

#g_recaptcha_responseObject

Returns the value of attribute g_recaptcha_response.



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

def g_recaptcha_response
  @g_recaptcha_response
end